1
0
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:
Kris Maglione
2011-08-15 01:22:50 -04:00
parent 07d6099a95
commit 9d87ed9454
2 changed files with 7 additions and 2 deletions

View File

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

View File

@@ -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) {
/**