mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:12:29 +02:00
Fix unfortunate bug.
This commit is contained in:
1 parent
d48dcd8723
commit
440f4872b1
1 file changed
+9
-3
@@ -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