1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 07:04:12 +01:00

Toggle strictCompatibility bit.

This commit is contained in:
Kris Maglione
2012-02-09 17:32:07 -05:00
parent 2a154ebd7b
commit caa7e8a1b3
3 changed files with 14 additions and 7 deletions

View File

@@ -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;
}
};