mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 11:05:47 +01:00
Closes issue #661.
This commit is contained in:
@@ -72,7 +72,9 @@ var EventHive = Class("EventHive", Contexts.Hive, {
|
|||||||
}
|
}
|
||||||
return !args[0].get();
|
return !args[0].get();
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
|
||||||
|
get wrapListener() events.closure.wrapListener
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,14 +86,6 @@ var Events = Module("events", {
|
|||||||
init: function () {
|
init: function () {
|
||||||
this.keyEvents = [];
|
this.keyEvents = [];
|
||||||
|
|
||||||
update(this, {
|
|
||||||
hives: contexts.Hives("events", EventHive),
|
|
||||||
user: contexts.hives.events.user,
|
|
||||||
builtin: contexts.hives.events.builtin
|
|
||||||
});
|
|
||||||
|
|
||||||
EventHive.prototype.wrapListener = this.closure.wrapListener;
|
|
||||||
|
|
||||||
XML.ignoreWhitespace = true;
|
XML.ignoreWhitespace = true;
|
||||||
overlay.overlayWindow(window, {
|
overlay.overlayWindow(window, {
|
||||||
append: <e4x xmlns={XUL}>
|
append: <e4x xmlns={XUL}>
|
||||||
@@ -951,6 +945,14 @@ var Events = Module("events", {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
contexts: function initContexts(dactyl, modules, window) {
|
||||||
|
update(Events.prototype, {
|
||||||
|
hives: contexts.Hives("events", EventHive),
|
||||||
|
user: contexts.hives.events.user,
|
||||||
|
builtin: contexts.hives.events.builtin
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
commands: function () {
|
commands: function () {
|
||||||
commands.add(["delmac[ros]"],
|
commands.add(["delmac[ros]"],
|
||||||
"Delete macros",
|
"Delete macros",
|
||||||
|
|||||||
@@ -70,7 +70,12 @@ var Modules = function Modules(window) {
|
|||||||
var base = ModuleBase;
|
var base = ModuleBase;
|
||||||
if (callable(args[1]))
|
if (callable(args[1]))
|
||||||
base = args.splice(1, 1)[0];
|
base = args.splice(1, 1)[0];
|
||||||
|
|
||||||
let [, prototype, classProperties, moduleInit] = args;
|
let [, prototype, classProperties, moduleInit] = args;
|
||||||
|
prototype._metaInit_ = function () {
|
||||||
|
delete module.prototype._metaInit_;
|
||||||
|
Class.replaceProperty(modules, module.className, this);
|
||||||
|
};
|
||||||
const module = Class(name, base, prototype, classProperties);
|
const module = Class(name, base, prototype, classProperties);
|
||||||
|
|
||||||
module.INIT = moduleInit || {};
|
module.INIT = moduleInit || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user