From 56f56286b190392855d5e3fc36a03301e79855a5 Mon Sep 17 00:00:00 2001 From: Dan Palmer Date: Fri, 12 Dec 2014 21:23:09 +0000 Subject: [PATCH] Always evaluate on init --- jquery.complexify.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/jquery.complexify.js b/jquery.complexify.js index 34e1807..cd6c897 100644 --- a/jquery.complexify.js +++ b/jquery.complexify.js @@ -116,8 +116,7 @@ minimumChars: 8, strengthScaleFactor: 1, bannedPasswords: window.COMPLEXIFY_BANLIST || [], - banmode: 'strict', // (strict|loose) - evaluateOnInit: true + banmode: 'strict' // (strict|loose) }; if($.isFunction(options) && !callback) { @@ -177,11 +176,9 @@ callback.call(this, valid, complexity); } - if( options.evaluateOnInit ) { - this.each(function () { - evaluateSecurity.apply(this); - }); - } + this.each(function () { + evaluateSecurity.apply(this); + }); return this.each(function () { $(this).bind('keyup focus input propertychange mouseup', evaluateSecurity);