File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* Ajax Autocomplete for jQuery, version %version%
3
- * (c) 2014 Tomas Kirda
3
+ * (c) 2015 Tomas Kirda
4
4
*
5
5
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
6
6
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
615
615
var that = this ,
616
616
container = $ ( that . suggestionsContainer ) ;
617
617
618
- if ( $ . isFunction ( this . options . onHide ) && that . visible ) {
619
-
620
- this . options . onHide . call ( that . element , container ) ;
618
+ if ( $ . isFunction ( that . options . onHide ) && that . visible ) {
619
+ that . options . onHide . call ( that . element , container ) ;
621
620
}
622
-
621
+
623
622
that . visible = false ;
624
623
that . selectedIndex = - 1 ;
625
624
clearInterval ( that . onChangeInterval ) ;
629
628
630
629
suggest : function ( ) {
631
630
if ( this . suggestions . length === 0 ) {
632
- this . options . showNoSuggestionNotice ? this . noSuggestions ( ) : this . hide ( ) ;
633
- if ( this . options . showNoSuggestionNotice ) {
634
- this . noSuggestions ( ) ;
635
- } else {
636
- this . hide ( ) ;
637
- }
631
+ if ( this . options . showNoSuggestionNotice ) {
632
+ this . noSuggestions ( ) ;
633
+ } else {
634
+ this . hide ( ) ;
635
+ }
638
636
return ;
639
637
}
640
638
You can’t perform that action at this time.
0 commit comments