diff --git a/src/databr.js b/src/databr.js index 66279c41..db65c7c9 100644 --- a/src/databr.js +++ b/src/databr.js @@ -214,7 +214,7 @@ function QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode) var unicodeString = ""; do { - intData = getNextBits(13); + intData = this.getNextBits(13); var lowerByte = intData % 0xC0; var higherByte = intData / 0xC0; diff --git a/src/findpat.js b/src/findpat.js index 08a16ff8..33910385 100644 --- a/src/findpat.js +++ b/src/findpat.js @@ -634,7 +634,7 @@ function FinderPatternFinder() if (this.hasSkipped) { // Found a third one - done = haveMultiplyConfirmedCenters(); + done = this.haveMultiplyConfirmedCenters(); } } } diff --git a/src/formatinf.js b/src/formatinf.js index 7e4b5926..62266a4c 100644 --- a/src/formatinf.js +++ b/src/formatinf.js @@ -43,7 +43,7 @@ function FormatInformation(formatInfo) }); this.GetHashCode=function() { - return (this.errorCorrectionLevel.ordinal() << 3) | dataMask; + return (this.errorCorrectionLevel.ordinal() << 3) | this.dataMask; } this.Equals=function( o) { diff --git a/src/gf256.js b/src/gf256.js index 97658627..8eb6b617 100644 --- a/src/gf256.js +++ b/src/gf256.js @@ -63,7 +63,7 @@ function GF256( primitive) } if (coefficient == 0) { - return zero; + return this.zero; } var coefficients = new Array(degree + 1); for(var i=0;i