File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 474
474
that = this ,
475
475
options = that . options ,
476
476
serviceUrl = options . serviceUrl ,
477
- data ,
477
+ params ,
478
478
cacheKey ;
479
479
480
480
options . params [ options . paramName ] = q ;
481
- data = options . ignoreParams ? null : options . params ;
481
+ params = options . ignoreParams ? null : options . params ;
482
482
483
483
if ( that . isLocal ) {
484
484
response = that . getSuggestionsLocal ( q ) ;
485
485
} else {
486
486
if ( $ . isFunction ( serviceUrl ) ) {
487
487
serviceUrl = serviceUrl . call ( that . element , q ) ;
488
488
}
489
- cacheKey = serviceUrl + '?' + $ . param ( data || { } ) ;
489
+ cacheKey = serviceUrl + '?' + $ . param ( params || { } ) ;
490
490
response = that . cachedResponse [ cacheKey ] ;
491
491
}
492
492
502
502
}
503
503
that . currentRequest = $ . ajax ( {
504
504
url : serviceUrl ,
505
- data : data ,
505
+ data : params ,
506
506
type : options . type ,
507
507
dataType : options . dataType
508
508
} ) . done ( function ( data ) {
You can’t perform that action at this time.
0 commit comments