File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 138
138
if ( ! currentValue ) {
139
139
return suggestion . value ;
140
140
}
141
-
141
+
142
142
var pattern = '(' + utils . escapeRegExChars ( currentValue ) + ')' ;
143
143
144
144
return suggestion . value
237
237
that . hide ( ) ;
238
238
} , 200 ) ;
239
239
} ,
240
-
240
+
241
241
abortAjax : function ( ) {
242
242
var that = this ;
243
243
if ( that . currentRequest ) {
252
252
253
253
this . options = $ . extend ( { } , options , suppliedOptions ) ;
254
254
255
- that . isLocal = $ . isArray ( options . lookup ) ;
255
+ that . isLocal = Array . isArray ( options . lookup ) ;
256
256
257
257
if ( that . isLocal ) {
258
258
options . lookup = that . verifySuggestionsFormat ( options . lookup ) ;
558
558
response = that . cachedResponse [ cacheKey ] ;
559
559
}
560
560
561
- if ( response && $ . isArray ( response . suggestions ) ) {
561
+ if ( response && Array . isArray ( response . suggestions ) ) {
562
562
that . suggestions = response . suggestions ;
563
563
that . suggest ( ) ;
564
564
options . onSearchComplete . call ( that . element , q , response . suggestions ) ;
704
704
noSuggestionsContainer . detach ( ) ;
705
705
706
706
// clean suggestions if any
707
- container . empty ( ) ;
707
+ container . empty ( ) ;
708
708
container . append ( noSuggestionsContainer ) ;
709
709
710
710
if ( $ . isFunction ( beforeRender ) ) {
You can’t perform that action at this time.
0 commit comments