aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2017-05-08 11:52:58 -0400
committerScott González <scott.gonzalez@gmail.com>2017-05-17 11:17:17 -0400
commit809f29efa79c3c9aba95e6d7ffef41f567cda3a5 (patch)
tree30ebdfab5e40395b2017c1c8c55dfcef6be20bd5 /ui
parent0940cb9bd2b8967c8eac15f3097933f5aee7e551 (diff)
downloadjquery-ui-809f29efa79c3c9aba95e6d7ffef41f567cda3a5.tar.gz
jquery-ui-809f29efa79c3c9aba95e6d7ffef41f567cda3a5.zip
All: Remove uses of `jQuery.proxy()`
Ref #15160 Closes gh-1813
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/widgets/autocomplete.js b/ui/widgets/autocomplete.js
index c5bddc074..60d326544 100644
--- a/ui/widgets/autocomplete.js
+++ b/ui/widgets/autocomplete.js
@@ -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 );
}
@@ -456,7 +456,7 @@ $.widget( "ui.autocomplete", {
if ( !this.pending ) {
this._removeClass( "ui-autocomplete-loading" );
}
- }, this );
+ }.bind( this );
},
__response: function( content ) {