[dist] Semantic cleanup from sloppy coding in #76.
This commit is contained in:
parent
ffce2cbec1
commit
f771500266
1 changed files with 11 additions and 13 deletions
|
@ -29,13 +29,11 @@ var Provider = exports.Provider = function (options) {
|
||||||
// Define wrapper functions for using basic stores
|
// Define wrapper functions for using basic stores
|
||||||
// in this instance
|
// in this instance
|
||||||
//
|
//
|
||||||
Provider.prototype['argv'] = function(options, usage) {
|
|
||||||
return this.add('argv', options, usage);
|
|
||||||
};
|
|
||||||
|
|
||||||
['env'].forEach(function (type) {
|
['add', 'env'].forEach(function (type) {
|
||||||
Provider.prototype[type] = function (options) {
|
Provider.prototype[type] = function () {
|
||||||
return this.add(type, options);
|
var args = [type].concat(Array.prototype.slice.call(arguments));
|
||||||
|
return this.add.apply(this, args);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue