Bug 801937 - JavaScript strict warning in scratchpad.js; r=harth
This commit is contained in:
@@ -1243,8 +1243,13 @@ var Scratchpad = {
|
||||
}
|
||||
|
||||
this.resetContext();
|
||||
this.gBrowser.selectedBrowser.removeEventListener("load",
|
||||
this._reloadAndRunEvent, true);
|
||||
|
||||
// This event is created only after user uses 'reload and run' feature.
|
||||
if (this._reloadAndRunEvent) {
|
||||
this.gBrowser.selectedBrowser.removeEventListener("load",
|
||||
this._reloadAndRunEvent, true);
|
||||
}
|
||||
|
||||
this.editor.removeEventListener(SourceEditor.EVENTS.DIRTY_CHANGED,
|
||||
this._onDirtyChanged);
|
||||
PreferenceObserver.uninit();
|
||||
|
||||
Reference in New Issue
Block a user