Bug 801937 - JavaScript strict warning in scratchpad.js; r=harth

This commit is contained in:
Anton Kovalyov
2012-10-15 16:30:37 -07:00
parent 197e99bc7e
commit 0794472f6b

View File

@@ -1243,8 +1243,13 @@ var Scratchpad = {
} }
this.resetContext(); this.resetContext();
// This event is created only after user uses 'reload and run' feature.
if (this._reloadAndRunEvent) {
this.gBrowser.selectedBrowser.removeEventListener("load", this.gBrowser.selectedBrowser.removeEventListener("load",
this._reloadAndRunEvent, true); this._reloadAndRunEvent, true);
}
this.editor.removeEventListener(SourceEditor.EVENTS.DIRTY_CHANGED, this.editor.removeEventListener(SourceEditor.EVENTS.DIRTY_CHANGED,
this._onDirtyChanged); this._onDirtyChanged);
PreferenceObserver.uninit(); PreferenceObserver.uninit();