Skip to content

Commit

Permalink
fix broken build (1.0.8) with real fix for #14
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Jul 27, 2014
1 parent 220b8ba commit 2ccc76b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/CanvasRenderingContext2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@
});

// Stroke lineWidth adjustment
prototype.stroke = (function(_super) {
var args = Array.prototype.slice.call(arguments);
this.lineWidth *= pixelRatio;
_super.apply(this, args);
this.lineWidth /= pixelRatio;
})(prototype.stroke);
prototype.stroke = (function(_super) {
return function() {
this.lineWidth *= pixelRatio;
_super.apply(this, arguments);
this.lineWidth /= pixelRatio;
};
})(prototype.stroke);

// Text
//
Expand Down

0 comments on commit 2ccc76b

Please sign in to comment.