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 474474 that = this ,
475475 options = that . options ,
476476 serviceUrl = options . serviceUrl ,
477- data ,
477+ params ,
478478 cacheKey ;
479479
480480 options . params [ options . paramName ] = q ;
481- data = options . ignoreParams ? null : options . params ;
481+ params = options . ignoreParams ? null : options . params ;
482482
483483 if ( that . isLocal ) {
484484 response = that . getSuggestionsLocal ( q ) ;
485485 } else {
486486 if ( $ . isFunction ( serviceUrl ) ) {
487487 serviceUrl = serviceUrl . call ( that . element , q ) ;
488488 }
489- cacheKey = serviceUrl + '?' + $ . param ( data || { } ) ;
489+ cacheKey = serviceUrl + '?' + $ . param ( params || { } ) ;
490490 response = that . cachedResponse [ cacheKey ] ;
491491 }
492492
502502 }
503503 that . currentRequest = $ . ajax ( {
504504 url : serviceUrl ,
505- data : data ,
505+ data : params ,
506506 type : options . type ,
507507 dataType : options . dataType
508508 } ) . done ( function ( data ) {
You can’t perform that action at this time.
0 commit comments