mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:12:38 +02:00
Toggle strictCompatibility bit.
This commit is contained in:
1 parent
2a154ebd7b
commit
caa7e8a1b3
3 files changed
+14
-7
No files matched your search
@@ -123,8 +123,9 @@ else
|
||||
},
|
||||
|
||||
cleanup: function unregister() {
|
||||
for each (let factory in this.factories.splice(0))
|
||||
for each (let factory in this.factories)
|
||||
this.manager.unregisterFactory(factory.classID, factory);
|
||||
this.factories = {};
|
||||
},
|
||||
|
||||
purge: function purge() {
|
||||
@@ -185,11 +186,15 @@ else
|
||||
}),
|
||||
|
||||
registerFactory: function registerFactory(factory) {
|
||||
if (Set.has(this.factories, factory.contractID))
|
||||
this.manager.unregisterFactory(this.factories[factory.contractID].classID,
|
||||
this.factories[factory.contractID]);
|
||||
|
||||
this.manager.registerFactory(factory.classID,
|
||||
String(factory.classID),
|
||||
factory.contractID,
|
||||
factory);
|
||||
this.factories.push(factory);
|
||||
this.factories[factory.contractID] = factory;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user