Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Also move other drawSelf bind to onload
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Mar 25, 2019
commit d4ee6076cc99cb9b6541b73c8bb6b1a1578aad43
3 changes: 1 addition & 2 deletions jquery.strengthify.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,14 @@
getWrapperFor(elemId).append('<div class="strengthify-tiles"></div>');
}

$elem.parent().on('scroll', drawSelf);

var script = document.createElement("script");
script.src = options.zxcvbn;
if (options.nonce !== null) {
script.setAttribute('nonce', options.nonce);
}

script.onload = function() {
$elem.parent().on('scroll', drawSelf);
$elem.bind('keyup input change', drawSelf);
}

Expand Down