* try different way of referencing broadcast actions

This commit is contained in:
Seth Call 2016-03-10 14:57:14 -06:00
parent 2ad2531f6b
commit 349e9027a3
2 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,6 @@
$ = jQuery
context = window
context.JK ||= {};
broadcastActions = @BroadcastActions
logger = context.JK.logger
context.JK.ClientInit = class ClientInit
@ -20,11 +19,11 @@ context.JK.ClientInit = class ClientInit
this.watchBroadcast()
if context.jamClient.RegisterSessionJoinLeaveRequestCallBack
if context.jamClient.RegisterSessionJoinLeaveRequestCallBack?
context.jamClient.RegisterSessionJoinLeaveRequestCallBack("SessionStore.handleJoinLeaveRequestCallback")
checkBroadcast: () =>
promise = broadcastActions.load.trigger()
promise = @BroadcastActions.load.trigger()
if promise
promise.catch(() ->
false

View File

@ -4,5 +4,3 @@ context = window
load: {asyncResult: true},
hide: {}
})
context.JK.Actions.Broadcast = BroadcastActions