Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move base in plugin inheritance to object

  • Loading branch information...
commit ddeb1872fe5aff2abc2b23e9fc484c18ffe58948 1 parent 414a436
Matt Sergeant authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  plugins.js
View
3  plugins.js
@@ -15,6 +15,7 @@ if (process.env.HARAKA) { plugin_paths.unshift(path.join(process.env.HARAKA, 'pl
function Plugin(name) {
this.name = name;
+ this.base = {};
this.timeout = config.get(name + '.timeout');
if (this.timeout === null) {
this.timeout = config.get('plugin_timeout') || 30;
@@ -50,7 +51,7 @@ Plugin.prototype.inherits = function (parent_name) {
if (parent_plugin.register) {
parent_plugin.register.call(this);
}
- this.base = parent_plugin;
+ this.base[parent_name] = parent_plugin;
}
// copy logger methods into Plugin:
Please sign in to comment.
Something went wrong with that request. Please try again.