+/* global zxcvbn */
window.wp = window.wp || {};
var passwordStrength;
for ( i = 0; i < userInputFieldsLength; i++ ) {
currentField = $( '#' + userInputFields[ i ] );
- if ( 0 == currentField.length ) {
+ if ( 0 === currentField.length ) {
continue;
}
// Remove empty values, short words, and duplicates. Short words are likely to cause many false positives.
blacklist = $.grep( blacklist, function( value, key ) {
- if ( '' == value || 4 > value.length ) {
+ if ( '' === value || 4 > value.length ) {
return false;
}
return blacklist;
}
- }
+ };
// Backwards compatibility.
passwordStrength = wp.passwordStrength.meter;