Skip to content

Commit

Permalink
[TASK] Remove Item.config set
Browse files Browse the repository at this point in the history
- It's handled in the module's constructor
  • Loading branch information
EnzoMartin committed Jan 6, 2015
1 parent 23001da commit 2931a7d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions whmcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
};
Expand Down

0 comments on commit 2931a7d

Please sign in to comment.