summaryrefslogtreecommitdiff
path: root/common/modules/storage.jsm
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/modules/storage.jsm
parentc9583ac72f401844de5136c82155c0d0dc5ae21f (diff)
downloadpentadactyl-84a68bff9a38fd578811fb1b26f3cbd4d13e6a5e.tar.gz
Add util.weakReference that won't crash if you pass null.
Diffstat (limited to 'common/modules/storage.jsm')
-rw-r--r--common/modules/storage.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm
index ebc7e4fd..803cb00a 100644
--- a/common/modules/storage.jsm
+++ b/common/modules/storage.jsm
@@ -214,7 +214,7 @@ var Storage = Module("Storage", {
if (ref) {
let refs = overlay.getData(ref, "storage-refs");
refs.push(callback);
- var callbackRef = Cu.getWeakReference(callback);
+ var callbackRef = util.weakReference(callback);
}
else {
callbackRef = { get: function () callback };