diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-10-01 23:02:00 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-10-01 23:02:00 -0400 |
commit | 84a68bff9a38fd578811fb1b26f3cbd4d13e6a5e (patch) | |
tree | 5e5a5020c81c99d1aac0c8028440758c88c9ab23 /common/modules/storage.jsm | |
parent | c9583ac72f401844de5136c82155c0d0dc5ae21f (diff) | |
download | pentadactyl-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.jsm | 2 |
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 }; |