small optimization

This commit is contained in:
Cade Scroggins
2017-06-29 00:04:40 -07:00
parent f7379c8651
commit 512924af69
+1 -1
View File
@@ -704,7 +704,7 @@
_handleKeyup(event) { _handleKeyup(event) {
const oldVal = this._inputElVal; const oldVal = this._inputElVal;
const newVal = this._inputEl.value.trim(); const newVal = this._inputEl.value.trim();
this._inputElVal = this._inputEl.value; this._inputElVal = newVal;
if (CONFIG.suggestions && oldVal !== newVal) { if (CONFIG.suggestions && oldVal !== newVal) {
this._suggester.suggest(newVal, this._submitWithValue); this._suggester.suggest(newVal, this._submitWithValue);