Index: Source/devtools/front_end/sdk/ConsoleModel.js |
diff --git a/Source/devtools/front_end/sdk/ConsoleModel.js b/Source/devtools/front_end/sdk/ConsoleModel.js |
index 23578f264fce8de0563a19f27260e1bc31c1988c..5c720b28af84e2f565575cea35b546a5c13c44af 100644 |
--- a/Source/devtools/front_end/sdk/ConsoleModel.js |
+++ b/Source/devtools/front_end/sdk/ConsoleModel.js |
@@ -193,8 +193,7 @@ WebInspector.ConsoleModel.evaluateCommandInConsole = function(executionContext, |
/** |
* @constructor |
- * @extends {WebInspector.TargetAware} |
- * @param {!WebInspector.Target} target |
+ * @param {?WebInspector.Target} target |
* @param {string} source |
* @param {?string} level |
* @param {string} messageText |
@@ -211,7 +210,7 @@ WebInspector.ConsoleModel.evaluateCommandInConsole = function(executionContext, |
*/ |
WebInspector.ConsoleMessage = function(target, source, level, messageText, type, url, line, column, requestId, parameters, stackTrace, timestamp, isOutdated, executionContextId) |
{ |
- WebInspector.TargetAware.call(this, target); |
+ this._target = target; |
this.source = source; |
this.level = level; |
this.messageText = messageText; |
@@ -238,6 +237,14 @@ WebInspector.ConsoleMessage = function(target, source, level, messageText, type, |
WebInspector.ConsoleMessage.prototype = { |
/** |
+ * @return {?WebInspector.Target} |
+ */ |
+ target: function() |
+ { |
+ return this._target; |
+ }, |
+ |
+ /** |
* @param {!WebInspector.ConsoleMessage} originatingMessage |
*/ |
setOriginatingMessage: function(originatingMessage) |
@@ -344,9 +351,7 @@ WebInspector.ConsoleMessage.prototype = { |
&& (this.messageText === msg.messageText) |
&& (this.request === msg.request) |
&& (this.executionContextId === msg.executionContextId); |
- }, |
- |
- __proto__: WebInspector.TargetAware.prototype |
+ } |
} |
// Note: Keep these constants in sync with the ones in Console.h |
@@ -401,7 +406,7 @@ WebInspector.ConsoleMessage.MessageLevel = { |
/** |
* @param {!WebInspector.ConsoleMessage} a |
* @param {!WebInspector.ConsoleMessage} b |
- * @return number |
+ * @return {number} |
*/ |
WebInspector.ConsoleMessage.timestampComparator = function (a, b) |
{ |