Skip to content

Commit

Permalink
Merge branch 'sync'
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhane committed Mar 22, 2017
2 parents b0ca3df + 88eb352 commit 59b7e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bus.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const getChannelSubscribers = (channel) => {
}
const sendMessageToSubscribers = (channel, message) => {
getChannelSubscribers('*').concat(getChannelSubscribers(channel)).forEach((sub) => {
setTimeout(((sub) => sub.filterFn(message) && sub.fn(message))(sub), 0)
sub.filterFn(message) && sub.fn(message)
})
}
const sendMessageToMiddlewares = (channel, message, source) => {
middlewares.forEach((mw) => {
setTimeout((() => mw(channel, message, source))(mw), 0)
mw(channel, message, source)
})
}
const wrapReduxMiddleware = (mw) => {
Expand Down

0 comments on commit 59b7e0b

Please sign in to comment.