mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 21:32:27 +01:00
Fix unfortunate bug.
This commit is contained in:
@@ -245,9 +245,15 @@ var Overlay = Module("Overlay", {
|
||||
if (frame && frame.filename)
|
||||
defineModule.loadLog.push(" from: " + util.fixURI(frame.filename) + ":" + frame.lineNumber);
|
||||
|
||||
delete modules[module.className];
|
||||
// util.dump("INIT: " + module.className);
|
||||
modules[module.className] = defineModule.time(module.className, "init", module);
|
||||
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);
|
||||
}
|
||||
|
||||
frob(module.className);
|
||||
|
||||
// init(modules[module.className]);
|
||||
|
||||
Reference in New Issue
Block a user