[fix] we shouldnt be reversing here fixes #127
This commit is contained in:
parent
6271cdb35d
commit
87a3b82418
1 changed files with 1 additions and 4 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue