1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 09:15:45 +01:00

Closes issue #661.

This commit is contained in:
Kris Maglione
2011-09-14 11:00:18 -04:00
parent 16eea3c45a
commit 89482c5c23
2 changed files with 16 additions and 9 deletions

View File

@@ -70,7 +70,12 @@ var Modules = function Modules(window) {
var base = ModuleBase;
if (callable(args[1]))
base = args.splice(1, 1)[0];
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);
module.INIT = moduleInit || {};