Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed undefined field

  • Loading branch information...
commit 02546d9e7d9f7c1ec2ba71b726f020c22fefcf56 1 parent 93e547b
@trimentor authored
View
3  app/assets/javascripts/jquery.pwdcalc.coffee
@@ -51,7 +51,8 @@ class @Pwdcalc
$strengthMeter.html i18nStrength
trigger: (eventType, event) ->
- $(document).trigger eventType, [event, @$input]
+ $input = $('input', @$inputWrapper)
+ $(document).trigger eventType, [event, $input]
$ ->
$("li.pwdcalc, div.pwdcalc_simple").each ->
View
4 app/assets/javascripts/jquery.pwdcalc.js
@@ -75,7 +75,9 @@ https://github.com/trimentor/pwdcalc/blob/master/LICENSE
};
Pwdcalc.prototype.trigger = function(eventType, event) {
- return $(document).trigger(eventType, [event, this.$input]);
+ var $input;
+ $input = $('input', this.$inputWrapper);
+ return $(document).trigger(eventType, [event, $input]);
};
return Pwdcalc;
Please sign in to comment.
Something went wrong with that request. Please try again.