diff --git a/README.md b/README.md index 7c2113d0..828f62fd 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ the end of this document. ## Status -* Current bwip-js version is 0.14.0 (07-Sep-2015) +* Current bwip-js version is 0.14.1 (21-Sep-2015) * Current BWIPP version is 2015-08-10 * Node.js compatibility >= v0.10 (reported to work with v0.8 but not tested). * npm dependencies: none diff --git a/bwip.js b/bwip.js index 7c868ef7..ad1e4b6d 100644 --- a/bwip.js +++ b/bwip.js @@ -578,7 +578,6 @@ BWIPJS.prototype.charpath = function(str, b) { this.rlineto(0, sw.a); this.rlineto(sw.w, 0); this.rlineto(0, -sw.h); - BWIPJS.debug('charpath(' + sw.a + ',' + sw.h + ')'); } BWIPJS.prototype.pathbbox = function() { BWIPJS.logapi('pathbbox', arguments); @@ -601,7 +600,6 @@ BWIPJS.prototype.pathbbox = function() { lly:(lly-this.g_tdy)/this.g_tsy, urx:(urx-this.g_tdx)/this.g_tsx, ury:(ury-this.g_tdy)/this.g_tsy }; - BWIPJS.debug('pathbox' + JSON.stringify(rv)); return rv; } BWIPJS.prototype.gsave = function() { @@ -791,8 +789,8 @@ BWIPJS.prototype.gclone = function(o) { if (o instanceof Object) { var t = {}; - for (i in o) - t[i] = this.gclone(o[i]); + for (var id in o) + t[id] = this.gclone(o[id]); return t; } return o; @@ -812,8 +810,6 @@ BWIPJS.prototype.gclone = function(o) { // it better connects one line with the next. BWIPJS.prototype.drawline = function(optmz, x1, y1, x2, y2, penx, peny, merge) { BWIPJS.logapi('drawline', arguments); - console.log('x1,y1,x2,y2=' + x1 + ',' + y1 + ',' + x2 + ',' + y2); - console.log('optmz,penx,peny=' + optmz + ',' + penx + ',' + peny); if (optmz && (x1 == x2 || y1 == y2)) { var lx = Math.round(penx); var ly = Math.round(peny); diff --git a/bwipp/renlinear.js b/bwipp/renlinear.js index 964146e8..b8a22dfc 100644 --- a/bwipp/renlinear.js +++ b/bwipp/renlinear.js @@ -125,15 +125,6 @@ BWIPJS.bwipp["renlinear"]=function() { this.ptr-=3; } function $f5(){ - var t=this.dstk.get("sbs"); - if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; - var t=this.dstk.get("i"); - if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; - if (this.stk[this.ptr-2] instanceof BWIPJS.psstring || this.stk[this.ptr-2] instanceof BWIPJS.psarray) - this.stk[this.ptr-2]=this.stk[this.ptr-2].get(this.stk[this.ptr-1]); - else this.stk[this.ptr-2]=this.stk[this.ptr-2][this.stk[this.ptr-1].toString()]; - this.ptr--; - this.print(BWIPJS.pstostring(this.stk[--this.ptr])); this.stk[this.ptr++]="d"; var t=this.dstk.get("sbs"); if (t instanceof Function) t.call(this); else this.stk[this.ptr++]=t; diff --git a/package.json b/package.json index 7bc9e9d4..2b7a5760 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bwip-js", - "version": "0.14.0", + "version": "0.14.1", "description": "Barcode generator supporting over 90 types and standards.", "main": "node-bwipjs", "scripts": {