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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.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/TextPrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
index c07024edf47b082da9b18bd02f747203a1ec0ea4..846be546a55d2722534b74b03e4cb4d09d973c28 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -31,18 +31,14 @@
* @constructor
* @extends {WebInspector.Object}
* @implements {WebInspector.SuggestBoxDelegate}
- * @param {function(!Element, !Range, boolean, function(!Array.<string>, number=))} completions
- * @param {string=} stopCharacters
*/
-WebInspector.TextPrompt = function(completions, stopCharacters)
+WebInspector.TextPrompt = function()
{
/**
* @type {!Element|undefined}
*/
this._proxyElement;
this._proxyElementDisplay = "inline-block";
- this._loadCompletions = completions;
- this._completionStopCharacters = stopCharacters || " =:[({;,!+-*/&|^<>.";
this._autocompletionTimeout = WebInspector.TextPrompt.DefaultAutocompletionTimeout;
this._title = "";
this._previousText = "";
@@ -60,6 +56,16 @@ WebInspector.TextPrompt.Events = {
WebInspector.TextPrompt.prototype = {
/**
+ * @param {function(!Element, !Range, boolean, function(!Array.<string>, number=))} completions
+ * @param {string=} stopCharacters
+ */
+ initialize: function(completions, stopCharacters)
+ {
+ this._loadCompletions = completions;
+ this._completionStopCharacters = stopCharacters || " =:[({;,!+-*/&|^<>.";
+ },
+
+ /**
* @param {number} timeout
*/
setAutocompletionTimeout: function(timeout)
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/TextEditor.js ('k') | third_party/WebKit/Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698