diff --git a/whmcs.js b/whmcs.js index 5173e73..2e728c1 100644 --- a/whmcs.js +++ b/whmcs.js @@ -30,9 +30,7 @@ var WHMCS = function(options) { while (i < len) { var name = files[i].replace('.js', ''); var Item = require(libPath + '/' + name); - _this[name] = new Item(); - _this[name].config = _this.config; - + _this[name] = new Item(this.config); i++; } };