From 51de1d46c808f0b31f351d376b7faedb30772c2f Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 3 Nov 2014 15:29:51 -0800 Subject: [PATCH] Update ByteBuffer.js Such update. Very versioned, wow. --- components/bytebuffer/dist/ByteBufferAB.js | 9 ++++----- js/components.js | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/components/bytebuffer/dist/ByteBufferAB.js b/components/bytebuffer/dist/ByteBufferAB.js index 22663b780df8..7168997a2de9 100644 --- a/components/bytebuffer/dist/ByteBufferAB.js +++ b/components/bytebuffer/dist/ByteBufferAB.js @@ -116,7 +116,7 @@ * @const * @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`. @@ -2136,11 +2136,10 @@ if (begin < 0 || begin > end || 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); - if (relative) { - this.offset = begin; - } + if (relative) this.offset = begin; return this; }; diff --git a/js/components.js b/js/components.js index a8e1660eb164..f728ee6020ec 100644 --- a/js/components.js +++ b/js/components.js @@ -10265,7 +10265,7 @@ return jQuery; * @const * @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`. @@ -12285,11 +12285,10 @@ return jQuery; if (begin < 0 || begin > end || 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); - if (relative) { - this.offset = begin; - } + if (relative) this.offset = begin; return this; };