Comparing version 0.0.10 to 0.0.11
@@ -212,17 +212,12 @@ /** | ||
var handlerPromise = new Promise(function(resolve, reject) { | ||
var storeInstance = self.getStore(store.name), | ||
finalHandler = function () { | ||
resolve(); | ||
storeInstance.removeListener('error', errorHandler); | ||
}, | ||
errorHandler = function (e) { | ||
reject(e); | ||
storeInstance.removeListener('final', finalHandler); | ||
}; | ||
var storeInstance = self.getStore(store.name); | ||
storeInstance.once('final', finalHandler); | ||
storeInstance.once('error', errorHandler); | ||
setImmediate(function () { | ||
storeInstance[store.handler](payload); | ||
storeInstance[store.handler](payload, function storeHandlerDone(err) { | ||
if (err) { | ||
reject(err); | ||
return; | ||
} | ||
resolve(); | ||
}); | ||
}); | ||
@@ -229,0 +224,0 @@ }); |
{ | ||
"name": "dispatchr", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A Flux dispatcher for applications that run on the server and the client.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46777
280