From 7a0af01a7b27857c5dd3944b64ef9cf1c9257229 Mon Sep 17 00:00:00 2001 From: Lindsey Simon Date: Mon, 11 May 2015 10:50:35 -0700 Subject: [PATCH] Updates build file --- dist/quagga.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/dist/quagga.js b/dist/quagga.js index 229513b..e51e0e1 100644 --- a/dist/quagga.js +++ b/dist/quagga.js @@ -6589,9 +6589,7 @@ define( return counter; }; - - - Code39Reader.prototype._decodeToResult = function() { + Code39Reader.prototype._decode = function() { var self = this, counters = [0,0,0,0,0,0,0,0,0], result = [], @@ -6601,7 +6599,6 @@ define( pattern, nextStart; - if (!start) { return null; } @@ -6624,6 +6621,8 @@ define( } while(decodedChar !== '*'); result.pop(); + + return { code : result.join(""), start : start.start, @@ -6633,10 +6632,6 @@ define( }; }; - Code39Reader.prototype._decode = function() { - return this._decodeToResult(); - }; - Code39Reader.prototype._patternToChar = function(pattern) { var i, self = this; @@ -6745,7 +6740,6 @@ define( return (Code39Reader); } ); - /* jshint undef: true, unused: true, browser:true, devel: true */ /* global define */ @@ -6771,7 +6765,7 @@ define( // Cribbed from: // https://github.com/zxing/zxing/blob/master/core/src/main/java/com/google/zxing/client/result/VINResultParser.java Code39VINReader.prototype._decode = function() { - var result = this._decodeToResult(); + var result = Code39Reader.prototype._decode.apply(this); if (!result) { return null; }