Bug 801937 - JavaScript strict warning in scratchpad.js; r=harth
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user