summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/modules/util.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/util.jsm b/common/modules/util.jsm
index cf2e59d3..07027705 100644
--- a/common/modules/util.jsm
+++ b/common/modules/util.jsm
@@ -132,7 +132,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
Class.replaceProperty(obj, "observe",
function (subject, target, data) {
try {
- if (!cleanup.indexOf(target))
+ if (~cleanup.indexOf(target))
register("removeObserver");
if (obj.observers[target])
obj.observers[target].call(obj, subject, data);