mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 05:07:59 +01:00
Add util.weakReference that won't crash if you pass null.
This commit is contained in:
@@ -333,7 +333,7 @@ var Modes = Module("modes", {
|
||||
if (!(id in this.boundProperties))
|
||||
for (let elem in array.iterValues(this._modeStack))
|
||||
elem.saved[id] = { obj: obj, prop: prop, value: obj[prop], test: test };
|
||||
this.boundProperties[id] = { obj: Cu.getWeakReference(obj), prop: prop, test: test };
|
||||
this.boundProperties[id] = { obj: util.weakReference(obj), prop: prop, test: test };
|
||||
},
|
||||
|
||||
inSet: false,
|
||||
|
||||
Reference in New Issue
Block a user