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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.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/resources/DatabaseQueryView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
index 0a731a835cd8a87e975ec001d6318279d2778c57..fbc9f2b08af6e346d3f967d226f0c15f5f887d11 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js
@@ -42,7 +42,8 @@ WebInspector.DatabaseQueryView = function(database)
this._promptElement.addEventListener("keydown", this._promptKeyDown.bind(this), true);
this.element.appendChild(this._promptElement);
- this._prompt = new WebInspector.TextPrompt(this.completions.bind(this), " ");
+ this._prompt = new WebInspector.TextPrompt();
+ this._prompt.initialize(this.completions.bind(this), " ");
this._proxyElement = this._prompt.attach(this._promptElement);
this.element.addEventListener("click", this._messagesClicked.bind(this), true);

Powered by Google App Engine
This is Rietveld 408576698