summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-09-14 10:44:28 -0400
committerKris Maglione <maglione.k@gmail.com>2011-09-14 10:44:28 -0400
commit16eea3c45af4f190274b0f0a955f76a01da0bdf7 (patch)
tree6ad30d7209454a18e90d550c37ca03076601daa1 /common
parent58a465707b03e9ec876efd1a9084c0481dde08ed (diff)
downloadpentadactyl-16eea3c45af4f190274b0f0a955f76a01da0bdf7.tar.gz
Fix typo.
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);