mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 04:35:46 +01:00
Fix some cleanup issues. Better error pages for bad dactyl: URLs. Remove some dead code. Other cleanup.
This commit is contained in:
@@ -44,7 +44,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
|
||||
cleanup: function cleanup(reason) {
|
||||
if (this.defaults != this)
|
||||
this.defaults.cleanup();
|
||||
this.defaults.cleanup(reason);
|
||||
|
||||
this._observers = {};
|
||||
if (this.observe) {
|
||||
@@ -62,7 +62,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
this.branches.saved.resetBranch();
|
||||
}
|
||||
|
||||
if (reason == "uninstall" && this == prefs)
|
||||
if (reason == "uninstall")
|
||||
localPrefs.resetBranch();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user