Comparing version 0.0.2 to 0.0.3
@@ -7,4 +7,2 @@ require('es6-promise').polyfill(); | ||
var isDispatching = false; | ||
function message(type) { | ||
@@ -15,12 +13,4 @@ var bus = new Bacon.Bus(); | ||
return new Promise(function (resolve, reject) { | ||
if (isDispatching) { | ||
throw new Error('You must not nest message dispatches. Fix your flux.'); | ||
} | ||
isDispatching = true; | ||
try { | ||
logger.logMessage(type, payload); | ||
bus.push(payload); | ||
} finally { | ||
isDispatching = false; | ||
} | ||
logger.logMessage(type, payload); | ||
bus.push(payload); | ||
resolve(); | ||
@@ -27,0 +17,0 @@ }); |
{ | ||
"name": "harukaze", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A reactive flux architecture implementation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3895
84