Update ByteBuffer.js

Such update. Very versioned, wow.
This commit is contained in:
lilia 2014-11-03 15:29:51 -08:00
parent bc5dea62c3
commit 51de1d46c8
2 changed files with 8 additions and 10 deletions

View file

@ -116,7 +116,7 @@
* @const * @const
* @expose * @expose
*/ */
ByteBuffer.VERSION = "3.5.3"; ByteBuffer.VERSION = "3.5.4";
/** /**
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`. * Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
@ -2136,11 +2136,10 @@
if (begin < 0 || begin > end || end > this.buffer.byteLength) if (begin < 0 || begin > end || end > this.buffer.byteLength)
throw RangeError("Illegal range: 0 <= "+begin+" <= "+end+" <= "+this.buffer.byteLength); throw RangeError("Illegal range: 0 <= "+begin+" <= "+end+" <= "+this.buffer.byteLength);
} }
if (begin >= end) return this; // Nothing to fill if (begin >= end)
return this; // Nothing to fill
while (begin < end) this.view.setUint8(begin++, value); while (begin < end) this.view.setUint8(begin++, value);
if (relative) { if (relative) this.offset = begin;
this.offset = begin;
}
return this; return this;
}; };

View file

@ -10265,7 +10265,7 @@ return jQuery;
* @const * @const
* @expose * @expose
*/ */
ByteBuffer.VERSION = "3.5.3"; ByteBuffer.VERSION = "3.5.4";
/** /**
* Little endian constant that can be used instead of its boolean value. Evaluates to `true`. * Little endian constant that can be used instead of its boolean value. Evaluates to `true`.
@ -12285,11 +12285,10 @@ return jQuery;
if (begin < 0 || begin > end || end > this.buffer.byteLength) if (begin < 0 || begin > end || end > this.buffer.byteLength)
throw RangeError("Illegal range: 0 <= "+begin+" <= "+end+" <= "+this.buffer.byteLength); throw RangeError("Illegal range: 0 <= "+begin+" <= "+end+" <= "+this.buffer.byteLength);
} }
if (begin >= end) return this; // Nothing to fill if (begin >= end)
return this; // Nothing to fill
while (begin < end) this.view.setUint8(begin++, value); while (begin < end) this.view.setUint8(begin++, value);
if (relative) { if (relative) this.offset = begin;
this.offset = begin;
}
return this; return this;
}; };