[fix] we shouldnt be reversing here fixes #127

This commit is contained in:
Jarrett Cruger 2014-11-26 12:51:22 -05:00
parent 6271cdb35d
commit 87a3b82418

View file

@ -224,7 +224,7 @@ Provider.prototype.get = function (key, callback) {
// the entire set of stores, but up until there is a defined value. // the entire set of stores, but up until there is a defined value.
// //
var current = 0, var current = 0,
names = Object.keys(this.stores).reverse(), names = Object.keys(this.stores),
self = this, self = this,
response, response,
mergeObjs = []; mergeObjs = [];
@ -512,9 +512,6 @@ Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
mergeObjs = [], mergeObjs = [],
keys = Object.keys(this.stores); keys = Object.keys(this.stores);
if (action === 'get') {
keys = keys.reverse();
}
function runAction (name, next) { function runAction (name, next) {
var store = self.stores[name]; var store = self.stores[name];