summaryrefslogtreecommitdiff
path: root/common/content/dactyl.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-10-01 23:02:00 -0400
committerKris Maglione <maglione.k@gmail.com>2011-10-01 23:02:00 -0400
commit84a68bff9a38fd578811fb1b26f3cbd4d13e6a5e (patch)
tree5e5a5020c81c99d1aac0c8028440758c88c9ab23 /common/content/dactyl.js
parentc9583ac72f401844de5136c82155c0d0dc5ae21f (diff)
downloadpentadactyl-84a68bff9a38fd578811fb1b26f3cbd4d13e6a5e.tar.gz
Add util.weakReference that won't crash if you pass null.
Diffstat (limited to 'common/content/dactyl.js')
-rw-r--r--common/content/dactyl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js
index 17a72ea7..f3260f42 100644
--- a/common/content/dactyl.js
+++ b/common/content/dactyl.js
@@ -205,7 +205,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
registerObserver: function registerObserver(type, callback, weak) {
if (!(type in this._observers))
this._observers[type] = [];
- this._observers[type].push(weak ? Cu.getWeakReference(callback) : { get: function () callback });
+ this._observers[type].push(weak ? util.weakReference(callback) : { get: function () callback });
},
registerObservers: function registerObservers(obj, prop) {