mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 00:15:46 +01:00
Add util.weakReference that won't crash if you pass null.
This commit is contained in:
@@ -30,7 +30,7 @@ var Group = Class("Group", {
|
||||
|
||||
get contexts() this.modules.contexts,
|
||||
|
||||
set lastDocument(val) { this._lastDocument = val && Cu.getWeakReference(val); },
|
||||
set lastDocument(val) { this._lastDocument = util.weakReference(val); },
|
||||
get lastDocument() this._lastDocument && this._lastDocument.get(),
|
||||
|
||||
modifiable: true,
|
||||
|
||||
Reference in New Issue
Block a user