applying timeout variance only for regex
This commit is contained in:
parent
620d7672c9
commit
3b2aa2ccd0
@ -202,13 +202,8 @@ TextSearchFacet.prototype._scheduleUpdate = function() {
|
||||
var self = this;
|
||||
this._timerID = window.setTimeout(function() {
|
||||
self._timerID = null;
|
||||
if(self._config.mode === 'regex') {
|
||||
setTimeout(function(){ self._updateRest(); }, 1000);
|
||||
}
|
||||
else if (self._config.caseSensitive == true) {
|
||||
setTimeout(function(){ self._updateRest(); }, 250);
|
||||
}
|
||||
}, 500);
|
||||
self._updateRest();
|
||||
}, self._config.mode === 'regex' ? 1500 : 500);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user