fix pusher subscription
This commit is contained in:
parent
060812b65d
commit
9ca03aebb6
|
@ -13,7 +13,7 @@ $.extend Travis.Pusher.prototype,
|
||||||
subscribe: (channel) ->
|
subscribe: (channel) ->
|
||||||
if @pusher && @active_channels.indexOf(channel) == -1
|
if @pusher && @active_channels.indexOf(channel) == -1
|
||||||
@active_channels.push(channel)
|
@active_channels.push(channel)
|
||||||
@pusher.subscribe(@prefix(channel)).bind_all(event, data) => @receive(event, data)
|
@pusher.subscribe(@prefix(channel)).bind_all((event, data) => @receive(event, data))
|
||||||
|
|
||||||
unsubscribe: (channel) ->
|
unsubscribe: (channel) ->
|
||||||
ix = @active_channels.indexOf(channel)
|
ix = @active_channels.indexOf(channel)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user