Make WordPress Core

Ticket #31812: remove-useless-debounce-and-bind.diff

File remove-useless-debounce-and-bind.diff, 424 bytes (added by evansolomon, 10 years ago)
  • wp-admin/js/theme.js

    diff --git a/wp-admin/js/theme.js b/wp-admin/js/theme.js
    index fbd3789..6008bbc 100644
    a b themes.view.InstallerSearch = themes.view.Search.extend({ 
    12701270                        event.target.value = '';
    12711271                }
    12721272
    1273                 _.debounce( _.bind( this.doSearch, this ), 300 )( event.target.value );
     1273                this.doSearch( event.target.value );
    12741274        },
    12751275
    12761276        doSearch: _.debounce( function( value ) {