mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
0940cb9bd2
commit
809f29efa7
@ -48,7 +48,7 @@
|
|||||||
.autocomplete({
|
.autocomplete({
|
||||||
delay: 0,
|
delay: 0,
|
||||||
minLength: 0,
|
minLength: 0,
|
||||||
source: $.proxy( this, "_source" )
|
source: this._source.bind( this )
|
||||||
})
|
})
|
||||||
.tooltip({
|
.tooltip({
|
||||||
classes: {
|
classes: {
|
||||||
|
@ -447,7 +447,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
_response: function() {
|
_response: function() {
|
||||||
var index = ++this.requestIndex;
|
var index = ++this.requestIndex;
|
||||||
|
|
||||||
return $.proxy( function( content ) {
|
return function( content ) {
|
||||||
if ( index === this.requestIndex ) {
|
if ( index === this.requestIndex ) {
|
||||||
this.__response( content );
|
this.__response( content );
|
||||||
}
|
}
|
||||||
@ -456,7 +456,7 @@ $.widget( "ui.autocomplete", {
|
|||||||
if ( !this.pending ) {
|
if ( !this.pending ) {
|
||||||
this._removeClass( "ui-autocomplete-loading" );
|
this._removeClass( "ui-autocomplete-loading" );
|
||||||
}
|
}
|
||||||
}, this );
|
}.bind( this );
|
||||||
},
|
},
|
||||||
|
|
||||||
__response: function( content ) {
|
__response: function( content ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user