Improved overall textcomplete performance and more cases and UX handling

This commit is contained in:
Cheng-Han, Wu 2016-03-15 11:04:45 +08:00
parent 88e6e8522f
commit 25dd400708
2 changed files with 49 additions and 23 deletions

View file

@ -202,7 +202,9 @@ if (typeof jQuery === 'undefined') {
// Ignore shift-key, ctrl-key and so on.
if (skipUnchangedTerm && this._term === term) { return; }
this._term = term;
this.fire('textComplete:beforeSearch');
this._search.apply(this, searchQuery);
this.fire('textComplete:afterSearch');
} else {
this._term = null;
this.dropdown.deactivate();