mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-30 03:24:04 +02:00
Add util.weakReference that won't crash if you pass null.
This commit is contained in:
@@ -96,7 +96,7 @@ var Hive = Class("Hive", {
|
||||
get modifiable() this.name !== "system",
|
||||
|
||||
addRef: function (obj) {
|
||||
this.refs.push(Cu.getWeakReference(obj));
|
||||
this.refs.push(util.weakReference(obj));
|
||||
this.dropRef(null);
|
||||
},
|
||||
dropRef: function (obj) {
|
||||
|
||||
Reference in New Issue
Block a user