Skip to content

Commit

Permalink
Merge pull request #11 from EnzoMartin/master
Browse files Browse the repository at this point in the history
Very minor refactor
  • Loading branch information
apocas committed Jan 6, 2015
2 parents 5c7071e + 2931a7d commit 185958d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions whmcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ var fs = require('fs');
var libPath = __dirname + '/modules';

/**
* Create new WHMCS client
* WHMCS client
* @param options {{username:String,serverUrl:String,password:String,apiKey:[String]}}
* @returns {Client}
*/
var WHMCS = function(options) {
var _this = this;
Expand All @@ -31,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 185958d

Please sign in to comment.