Instead of having to wrap .emit(), barracks could detect if the action name is an object and proceed from there:
old
// consume `flux standard actions`
// obj -> null
function fsaWrap (action) {
assert.ok(isFsa(action), action + ' is not a flux standard action')
d(action.type, action)
}
Instead of having to wrap
.emit()
,barracks
could detect if the action name is an object and proceed from there:old
new