Commit 1bc946cf authored by einbinder's avatar einbinder Committed by Commit bot

DevTools: Stop SuggestBox from flickering in TextPrompt

BUG=none

Review-Url: https://codereview.chromium.org/2390933003
Cr-Commit-Position: refs/heads/master@{#423016}
parent 9968503c
......@@ -282,7 +282,7 @@ WebInspector.TextPrompt.prototype = {
*/
_updateAutoComplete: function(force)
{
this.clearAutocomplete();
this._clearAutocompleteElement();
this.autoCompleteSoon(force);
},
......@@ -376,7 +376,11 @@ WebInspector.TextPrompt.prototype = {
{
if (this.isSuggestBoxVisible())
this._suggestBox.hide();
this._clearAutocompleteElement();
},
_clearAutocompleteElement: function()
{
if (this._completeTimeout) {
clearTimeout(this._completeTimeout);
delete this._completeTimeout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment