Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

provide callback with input element as 'this' context (as all good jq…

…uery plugins should)
  • Loading branch information...
commit 6002dc3573e43d857795cc5fea41201b22cf184b 1 parent 4f72f5b
@midnightmonster midnightmonster authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.complexify.js
View
2  jquery.complexify.js
@@ -51,7 +51,7 @@
complexity = (complexity / MAX_COMPLEXITY) * 100;
complexity = (complexity > 100) ? 100 : complexity;
- callback(valid, complexity);
+ callback.call(this, valid, complexity);
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.