mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 07:54:12 +01:00
Fix :rehash.
This commit is contained in:
@@ -202,7 +202,7 @@ function require(obj, name, from) {
|
||||
let caller = Components.stack.caller;
|
||||
|
||||
if (!loaded[name])
|
||||
defineModule.loadLog.push((from || "require") + ": loading " + name + " into " + (obj.NAME || caller.filename + ":" + caller.lineNumber));
|
||||
defineModule.loadLog.push(" " + (from || "require") + ": loading " + name + " into " + (obj.NAME || caller.filename + ":" + caller.lineNumber));
|
||||
|
||||
JSMLoader.load(name + ".jsm", obj);
|
||||
return obj;
|
||||
@@ -1069,8 +1069,9 @@ function Module(name, prototype) {
|
||||
let proto = arguments[callable(prototype) ? 2 : 1];
|
||||
|
||||
proto._metaInit_ = function () {
|
||||
dump("_metaInit_ " + name + " " + currentModule.NAME + " " + this + "\n");
|
||||
delete module.prototype._metaInit_;
|
||||
currentModule[name.toLowerCase()] = instance;
|
||||
currentModule[name.toLowerCase()] = this;
|
||||
};
|
||||
|
||||
const module = Class.apply(Class, Array.slice(arguments, 0, init));
|
||||
|
||||
@@ -45,6 +45,10 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
|
||||
config.loadStyles();
|
||||
|
||||
this.timeout(this.initialize);
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.overlayWindow(config.overlayChrome, function _overlay(window) ({
|
||||
init: function onInit(document) {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user