1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 11:15:47 +01:00

Move the ACR disabler to common/, pass it an add-on ID.

--HG--
rename : pentadactyl/content/disable-acr.jsm => common/content/disable-acr.jsm
This commit is contained in:
Kris Maglione
2011-02-06 17:32:42 -05:00
parent 4d9c196b6c
commit a1f291a9ec
3 changed files with 17 additions and 16 deletions

View File

@@ -249,13 +249,7 @@ var Overlay = Module("Overlay", {
defineModule.loadLog.push(" from: " + util.fixURI(frame.filename) + ":" + frame.lineNumber);
let obj = defineModule.time(module.className, "init", module);
try {
delete modules[module.className];
modules[module.className] = obj;
}
catch (e) {
Class.replaceProperty(modules, module.className, obj);
}
Class.replaceProperty(modules, module.className, obj);
loaded[module.className] = true;
frob(module.className);