Skip to content

Commit ea03ef0

Browse files
committed
Remove console logging hook
1 parent 1eb7400 commit ea03ef0

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

lib/console-overlay.js

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const actorModuleUrl = options.prefixURI + "lib/firequery-actor.js";
3535
/**
3636
* @overlay This object represents an overlay for the existing
3737
* Console panel and is responsible for Console customization.
38-
* FireQuery is hooking console logging and changing the way
39-
* how jQuery object is rendered in the Console.
38+
*
39+
* FireQuery is appending a new 'jQuerify' toolbar button
4040
*/
4141
const ConsoleOverlay = Class(
4242
/** @lends ConsoleOverlay */
@@ -52,8 +52,6 @@ const ConsoleOverlay = Class(
5252
PanelOverlay.prototype.initialize.apply(this, arguments);
5353

5454
Trace.sysout("ConsoleOverlay.initialize;", options);
55-
56-
this.onNewMessages = this.onNewMessages.bind(this);
5755
},
5856

5957
destroy: function() {
@@ -99,10 +97,6 @@ const ConsoleOverlay = Class(
9997
PanelOverlay.prototype.onReady.apply(this, arguments);
10098

10199
Trace.sysout("ConsoleOverlay.onReady;", options);
102-
103-
// Add listeners to {@WebConsoleFrame} object to hook message logging.
104-
let hud = this.panel.hud;
105-
hud.ui.on("new-messages", this.onNewMessages);
106100
},
107101

108102
// Backend
@@ -147,32 +141,10 @@ const ConsoleOverlay = Class(
147141
// xxxHonza: TODO
148142
},
149143

150-
// Message Logging Hooks
151-
152-
onNewMessages: function(topic, messages) {
153-
messages.forEach(msg => {
154-
this.onNewLog(msg);
155-
});
156-
},
157-
158-
onNewLog: function(log) {
159-
Trace.sysout("ConsoleOverlay.onNewLog;", log);
160-
161-
let node = log.node;
162-
let msg = log.response;
163-
164-
let args = msg.arguments;
165-
if (!args) {
166-
return;
167-
}
168-
169-
// xxxHonza: remove the tracing
170-
FBTrace.sysout("!!! args " + args.length, args);
171-
},
172-
173144
// Commands
174145

175146
onJQuerify: function() {
147+
// xxxHonza: TODO
176148
}
177149
});
178150

0 commit comments

Comments
 (0)