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 158
158
that . element . setAttribute ( 'autocomplete' , 'off' ) ;
159
159
160
160
that . killerFn = function ( e ) {
161
- if ( $ ( e . target ) . closest ( '.' + that . options . containerClass ) . length === 0 ) {
161
+ if ( ! $ ( e . target ) . closest ( '.' + that . options . containerClass ) . length ) {
162
162
that . killSuggestions ( ) ;
163
163
that . disableKillerFn ( ) ;
164
164
}
636
636
} ,
637
637
638
638
suggest : function ( ) {
639
- if ( this . suggestions . length === 0 ) {
639
+ if ( ! this . suggestions . length ) {
640
640
if ( this . options . showNoSuggestionNotice ) {
641
641
this . noSuggestions ( ) ;
642
642
} else {
804
804
// Cache results if cache is not disabled:
805
805
if ( ! options . noCache ) {
806
806
that . cachedResponse [ cacheKey ] = result ;
807
- if ( options . preventBadQueries && result . suggestions . length === 0 ) {
807
+ if ( options . preventBadQueries && ! result . suggestions . length ) {
808
808
that . badQueries . push ( originalQuery ) ;
809
809
}
810
810
}
962
962
var dataKey = 'autocomplete' ;
963
963
// If function invoked without argument return
964
964
// instance of the first matched element:
965
- if ( arguments . length === 0 ) {
965
+ if ( ! arguments . length ) {
966
966
return this . first ( ) . data ( dataKey ) ;
967
967
}
968
968
You can’t perform that action at this time.
0 commit comments