Permalink
Showing
with
3 additions
and
3 deletions.
-
+1
−1
demos/autocomplete/combobox.html
-
+2
−2
ui/widgets/autocomplete.js
|
|
@@ -48,7 +48,7 @@ |
|
|
.autocomplete({
|
|
|
delay: 0,
|
|
|
minLength: 0,
|
|
|
- source: $.proxy( this, "_source" )
|
|
|
+ source: this._source.bind( this )
|
|
|
})
|
|
|
.tooltip({
|
|
|
classes: {
|
|
|
|
|
|
@@ -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 ) {
|
|
|
|
0 comments on commit
809f29e