mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:22:32 +02:00
Fix potential races.
This commit is contained in:
1 parent
9470e18566
commit
c37656f731
3 files changed
+10
-7
No files matched your search
@@ -329,10 +329,11 @@ var Modes = Module("modes", {
|
||||
{ push: push }, push);
|
||||
|
||||
for (let [id, { obj, prop, test }] in Iterator(this.boundProperties)) {
|
||||
if (!obj.get())
|
||||
obj = obj.get();
|
||||
if (!obj)
|
||||
delete this.boundProperties[id];
|
||||
else
|
||||
this.topOfStack.saved[id] = { obj: obj.get(), prop: prop, value: obj.get()[prop], test: test };
|
||||
this.topOfStack.saved[id] = { obj: obj, prop: prop, value: obj[prop], test: test };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user