Skip to content

Commit

Permalink
Redo linting fix without shitting up code
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell committed Feb 19, 2012
1 parent 36c1331 commit ca0ed5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion imagediff.js
Expand Up @@ -155,9 +155,10 @@
aData = a.data,
bData = b.data,
length = aData.length,
tolerance = tolerance || 0,
i;

tolerance = tolerance || 0;

if (!equalDimensions(a, b)) return false;
for (i = length; i--;) if (aData[i] !== bData[i] && Math.abs(aData[i] - bData[i]) > tolerance) return false;

Expand Down
2 changes: 1 addition & 1 deletion imagediff.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion js/imagediff.js
Expand Up @@ -155,9 +155,10 @@
aData = a.data,
bData = b.data,
length = aData.length,
tolerance = tolerance || 0,
i;

tolerance = tolerance || 0;

if (!equalDimensions(a, b)) return false;
for (i = length; i--;) if (aData[i] !== bData[i] && Math.abs(aData[i] - bData[i]) > tolerance) return false;

Expand Down

0 comments on commit ca0ed5d

Please sign in to comment.