Index: Source/devtools/front_end/ConsoleModel.js |
diff --git a/Source/devtools/front_end/ConsoleModel.js b/Source/devtools/front_end/ConsoleModel.js |
index 10f0dddb9cac1925cd416a04906d0edd6c224f34..0e3428a08c9f17dd3ae8009d2dab11409e16320e 100644 |
--- a/Source/devtools/front_end/ConsoleModel.js |
+++ b/Source/devtools/front_end/ConsoleModel.js |
@@ -31,15 +31,16 @@ |
/** |
* @constructor |
* @extends {WebInspector.Object} |
+ * @param {!WebInspector.Target} target |
*/ |
-WebInspector.ConsoleModel = function() |
+WebInspector.ConsoleModel = function(target) |
{ |
- this._agent = ConsoleAgent; |
+ this._agent = target.agent("Console"); |
this.messages = []; |
this.warnings = 0; |
this.errors = 0; |
this._interruptRepeatCount = false; |
- InspectorBackend.registerConsoleDispatcher(new WebInspector.ConsoleDispatcher(this)); |
+ target.registerDispatcher("Console", new WebInspector.ConsoleDispatcher(this)); |
} |
WebInspector.ConsoleModel.Events = { |