Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(662)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js

Issue 2450663004: DevTools: do not allow using 'this' before call into super. (Closed)
Patch Set: rebaselined Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js
index 1e39accaa0ba5ca58bb48d37c1b54b4218760e83..00d94cd76b6f057df606350b2d7fffbef890c296 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js
@@ -25,7 +25,8 @@ WebInspector.FilteredListWidget = function(delegate)
this._promptElement = this.contentElement.createChild("div", "filtered-list-widget-input");
this._promptElement.setAttribute("spellcheck", "false");
this._promptElement.setAttribute("contenteditable", "plaintext-only");
- this._prompt = new WebInspector.TextPrompt(this._autocomplete.bind(this));
+ this._prompt = new WebInspector.TextPrompt();
+ this._prompt.initialize(this._autocomplete.bind(this));
this._prompt.renderAsBlock();
this._prompt.addEventListener(WebInspector.TextPrompt.Events.ItemAccepted, this._onAutocompleted, this);
var promptProxy = this._prompt.attach(this._promptElement);

Powered by Google App Engine
This is Rietveld 408576698