consume `flux-standard-action`s out of the box?
yoshuawuyts opened this issue · comments
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)
}
new
d(action)