forked from GitHub/dbot
Loads API functions into object according to module again. [#131]
This commit is contained in:
parent
96792d5008
commit
1d5fcf2f40
7
run.js
7
run.js
@ -197,7 +197,12 @@ DBot.prototype.reloadModules = function() {
|
|||||||
module[property][itemName] = _.bind(item, module);
|
module[property][itemName] = _.bind(item, module);
|
||||||
_.extend(module[property][itemName], item);
|
_.extend(module[property][itemName], item);
|
||||||
}, this);
|
}, this);
|
||||||
_.extend(this[property], module[property]);
|
|
||||||
|
if(property == 'api') {
|
||||||
|
this[property][name] = module[property];
|
||||||
|
} else {
|
||||||
|
_.extend(this[property], module[property]);
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// Load the module listener
|
// Load the module listener
|
||||||
|
Loading…
Reference in New Issue
Block a user