Permalink
Browse files

fixed merge issue in Provider.load by reversing store keys in getStores

  • Loading branch information...
1 parent 2804b1f commit 5c43d546d1b4c005d4d2988602561694735b3648 @jstewmon jstewmon committed with indexzero Dec 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/nconf/provider.js
View
@@ -294,7 +294,9 @@ Provider.prototype.load = function (callback) {
var self = this;
function getStores () {
- return Object.keys(self.stores).map(function (name) {
+ var stores = Object.keys(self.stores);
+ stores.reverse();
+ return stores.map(function (name) {
return self.stores[name];
});
}

0 comments on commit 5c43d54

Please sign in to comment.