Make WordPress Core


Ignore:
Timestamp:
11/15/2013 05:11:10 AM (12 years ago)
Author:
nacin
Message:

Fix JSHint errors in 3 files.

props atimmer.
fixes #25990, #25993, #26008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/password-strength-meter.js

    r25839 r26199  
     1/* global zxcvbn */
    12window.wp = window.wp || {};
    23
     
    4142                currentField = $( '#' + userInputFields[ i ] );
    4243
    43                 if ( 0 == currentField.length ) {
     44                if ( 0 === currentField.length ) {
    4445                    continue;
    4546                }
     
    5960            // Remove empty values, short words, and duplicates. Short words are likely to cause many false positives.
    6061            blacklist = $.grep( blacklist, function( value, key ) {
    61                 if ( '' == value || 4 > value.length ) {
     62                if ( '' === value || 4 > value.length ) {
    6263                    return false;
    6364                }
     
    6869            return blacklist;
    6970        }
    70     }
     71    };
    7172
    7273    // Backwards compatibility.
Note: See TracChangeset for help on using the changeset viewer.