Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Small typo... #21

Merged
merged 1 commit into from

2 participants

@Reggino

...breaks script in Firefox.

Great work on jDataView. I really appreciate it! Thanks

@vjeux vjeux merged commit 1036ea9 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 10, 2012
  1. @Reggino

    typo, breaks in Firefox

    Reggino authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/jdataview.js
View
2  src/jdataview.js
@@ -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) {
Something went wrong with that request. Please try again.