[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
|
||||
// in this instance
|
||||
//
|
||||
Provider.prototype['argv'] = function(options, usage) {
|
||||
return this.add('argv', options, usage);
|
||||
};
|
||||
|
||||
['env'].forEach(function (type) {
|
||||
Provider.prototype[type] = function (options) {
|
||||
return this.add(type, options);
|
||||
['add', 'env'].forEach(function (type) {
|
||||
Provider.prototype[type] = function () {
|
||||
var args = [type].concat(Array.prototype.slice.call(arguments));
|
||||
return this.add.apply(this, args);
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue