Permalink
Browse files

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

…uery plugins should)
  • Loading branch information...
1 parent 4f72f5b commit 6002dc3573e43d857795cc5fea41201b22cf184b @midnightmonster midnightmonster committed with May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
});
});

0 comments on commit 6002dc3

Please sign in to comment.