Comparing version 0.5.0 to 0.5.1
@@ -36,3 +36,8 @@ var path = require('path') | ||
, eventData = anEvent.data | ||
if(!handler) return cb && cb() | ||
if(!handler) { | ||
return setImmediate(function() { | ||
cb && cb() | ||
}) | ||
} | ||
if(transformer) { | ||
@@ -56,3 +61,5 @@ eventData = transformer(eventData) | ||
stateToSave = stateToSave || state | ||
storage.save(stateToSave, cb) | ||
storage.save(stateToSave, function(err, r) { | ||
cb(err, r) | ||
}) | ||
}) | ||
@@ -59,0 +66,0 @@ } |
@@ -49,3 +49,3 @@ { | ||
"main": "./bjorling.js", | ||
"version": "0.5.0" | ||
"version": "0.5.1" | ||
} |
35559
1061