Skip to content

Commit c2f135a

Browse files
committed
Merge branch 'master' of github.com:firebug/firequery
2 parents 808bc87 + 47159e2 commit c2f135a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/console-overlay.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ const { getJQuerifyCode } = require("./jquerify-code");
2323

2424
/**
2525
* @overlay This object represents an overlay for the existing
26-
* Console panel and is responsible for Console customization.
26+
* Console panel. It's responsible for Console customization.
27+
* The overlay follows the life cycle of the pane. It's created when
28+
* the panel is created (which happens when the panel is selected
29+
* by the user for the first time) and it's destroyed when the
30+
* Toolbox is destroyed.
2731
*
2832
* FireQuery is appending a new 'jQuerify' toolbar button
2933
*/
@@ -74,6 +78,8 @@ const ConsoleOverlay = Class(
7478
command: this.onJQuerify.bind(this)
7579
});
7680

81+
// Load custom style-sheet into the panel window (content window of
82+
// the panel's frame).
7783
let win = this.getPanelWindow();
7884
loadSheet(win, "chrome://firequery/skin/firequery.css", "author");
7985
},
@@ -94,6 +100,7 @@ const ConsoleOverlay = Class(
94100
return;
95101
}
96102

103+
// Evaluate jQuery script in the current page.
97104
let script = getJQuerifyCode();
98105
webConsoleClient.evaluateJSAsync(script, response => {
99106
if (response.error) {

0 commit comments

Comments
 (0)