Skip to content

Commit

Permalink
fix undeclared vars
Browse files Browse the repository at this point in the history
  • Loading branch information
iamJoeTaylor committed Jul 7, 2016
1 parent 1e9de9e commit 544d8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/StackBlur.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function stackBlurImage(img, canvas, radius, w, h) {
ratio = nw / w;
}

drawW = nw / ratio;
drawH = nh / ratio;
var drawW = nw / ratio;
var drawH = nh / ratio;

try {
context.drawImage(img, Math.floor((drawW - w) / -2), Math.floor((drawH - h) / -2), Math.ceil(drawW), Math.ceil(drawH));
Expand Down

0 comments on commit 544d8e6

Please sign in to comment.