fixed issue caused by using same name for defaults and overrides
This commit is contained in:
parent
e0e070ab28
commit
2804b1fb37
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ var Provider = exports.Provider = function (options) {
|
||||||
//
|
//
|
||||||
['defaults', 'overrides'].forEach(function (type) {
|
['defaults', 'overrides'].forEach(function (type) {
|
||||||
Provider.prototype[type] = function (options) {
|
Provider.prototype[type] = function (options) {
|
||||||
return this.add('literal', options);
|
options = options || {};
|
||||||
|
if(!options.type) {
|
||||||
|
options.type = 'literal';
|
||||||
|
}
|
||||||
|
return this.add(type, options);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue