Skip to content

Loading…

Make closure-compiler compatible #10

Merged
merged 1 commit into from

2 participants

@gfx

Closure-compiler refuse the word 'char', so it should be avoided.

Thanks.

@vjeux vjeux merged commit 8f18044 into jDataView:master
@vjeux
jDataView member

Thanks for the pull request, I didn't know!

@gfx

Thanks for the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jdataview.js
View
4 src/jdataview.js
@@ -126,8 +126,8 @@ jDataView.prototype = {
else {
value = '';
for (var i = 0; i < length; ++i) {
- var char = this.getUint8(byteOffset + i);
- value += String.fromCharCode(char > 127 ? 65533 : char);
+ var chr = this.getUint8(byteOffset + i);
+ value += String.fromCharCode(chr > 127 ? 65533 : chr);
}
}
Something went wrong with that request. Please try again.