diff --git a/js/flatbuffers.js b/js/flatbuffers.js index 0c970bd8b..416085204 100644 --- a/js/flatbuffers.js +++ b/js/flatbuffers.js @@ -829,7 +829,6 @@ flatbuffers.ByteBuffer = function(bytes) { * @private */ this.position_ = 0; - }; /** @@ -842,7 +841,7 @@ flatbuffers.ByteBuffer.allocate = function(byte_size) { return new flatbuffers.ByteBuffer(new Uint8Array(byte_size)); }; -flatbuffers.ByteBuffer.prototype.clear = function() { +flatbuffers.ByteBuffer.prototype.clear = function() { this.position_ = 0; };