Skip to content

Commit 8e6812d

Browse files
author
Tomas Kirda
committed
Fix white space.
1 parent a2c4728 commit 8e6812d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/jquery.autocomplete.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Ajax Autocomplete for jQuery, version %version%
3-
* (c) 2014 Tomas Kirda
3+
* (c) 2015 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
66
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
@@ -615,11 +615,10 @@
615615
var that = this,
616616
container = $(that.suggestionsContainer);
617617

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);
621620
}
622-
621+
623622
that.visible = false;
624623
that.selectedIndex = -1;
625624
clearInterval(that.onChangeInterval);
@@ -629,12 +628,11 @@
629628

630629
suggest: function () {
631630
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+
}
638636
return;
639637
}
640638

0 commit comments

Comments
 (0)