Permalink
Browse files

fix undeclared vars

  • Loading branch information...
1 parent 1e9de9e commit 544d8e640357be4398babb9b2dc1ccc186862b40 @iamJoeTaylor iamJoeTaylor committed Jul 7, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/StackBlur.js
View
@@ -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));

0 comments on commit 544d8e6

Please sign in to comment.