Permalink
Browse files

Merge pull request #21 from Reggino/master

Small typo...
  • Loading branch information...
2 parents 8cb9870 + 6face66 commit 1036ea97dccb4a92e5c46e2d69d1fe300bb0a21c @vjeux vjeux committed Jun 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jdataview.js
View
@@ -315,7 +315,7 @@ for (var type in dataTypes) {
// ArrayBuffer: we use a typed array of size 1 if the alignment is good
// ArrayBuffer does not support endianess flag (for size > 1)
else if (this._isArrayBuffer && (this._start + byteOffset) % size === 0 && (size === 1 || littleEndian)) {
- value = new all[type + 'Array'](this.buffer, this._start + byteOffset, 1)[0];
+ value = new global[type + 'Array'](this.buffer, this._start + byteOffset, 1)[0];
}
// NodeJS Buffer
else if (this._isNodeBuffer && compatibility.NodeBufferFull) {

0 comments on commit 1036ea9

Please sign in to comment.