Skip to content

Commit

Permalink
All: Remove uses of jQuery.proxy()
Browse files Browse the repository at this point in the history
Ref #15160
Closes gh-1813
  • Loading branch information
scottgonzalez committed May 17, 2017
1 parent 0940cb9 commit 809f29e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/autocomplete/combobox.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
.autocomplete({
delay: 0,
minLength: 0,
source: $.proxy( this, "_source" )
source: this._source.bind( this )
})
.tooltip({
classes: {
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ $.widget( "ui.autocomplete", {
_response: function() {
var index = ++this.requestIndex;

return $.proxy( function( content ) {
return function( content ) {
if ( index === this.requestIndex ) {
this.__response( content );
}
Expand All @@ -456,7 +456,7 @@ $.widget( "ui.autocomplete", {
if ( !this.pending ) {
this._removeClass( "ui-autocomplete-loading" );
}
}, this );
}.bind( this );
},

__response: function( content ) {
Expand Down

0 comments on commit 809f29e

Please sign in to comment.