Merge pull request #104 from flatiron/precedence_fix
[fix] have latter stores precede the former stores again.
This commit is contained in:
commit
999c6fbc6e
1 changed files with 2 additions and 2 deletions
|
@ -522,13 +522,13 @@ Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
|
|||
}
|
||||
|
||||
if (callback) {
|
||||
return async.forEach(Object.keys(this.stores), runAction, function (err) {
|
||||
return async.forEach(Object.keys(this.stores).reverse(), runAction, function (err) {
|
||||
return err ? callback(err) : callback();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Object.keys(this.stores).forEach(function (name) {
|
||||
Object.keys(this.stores).reverse().forEach(function (name) {
|
||||
if (typeof response === 'undefined') {
|
||||
var store = self.stores[name];
|
||||
|
||||
|
|
Loading…
Reference in a new issue