Bug 864417 - Broken observer calls in editor.js due to bug 795158. r=IanN, r=mconley
This commit is contained in:
Родитель
d260ea25c4
Коммит
371a5c1193
|
@ -110,7 +110,7 @@ nsPrefListener.prototype =
|
|||
{
|
||||
this.domain = prefName;
|
||||
try {
|
||||
pref.addObserver(this.domain, this, false);
|
||||
Services.prefs.addObserver(this.domain, this, false);
|
||||
} catch(ex) {
|
||||
dump("Failed to observe prefs: " + ex + "\n");
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ nsPrefListener.prototype =
|
|||
shutdown: function()
|
||||
{
|
||||
try {
|
||||
pref.removeObserver(this.domain, this);
|
||||
Services.prefs.removeObserver(this.domain, this);
|
||||
} catch(ex) {
|
||||
dump("Failed to remove pref observers: " + ex + "\n");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче