* try different way of referencing broadcast actions
This commit is contained in:
parent
2ad2531f6b
commit
349e9027a3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,5 +4,3 @@ context = window
|
|||
load: {asyncResult: true},
|
||||
hide: {}
|
||||
})
|
||||
|
||||
context.JK.Actions.Broadcast = BroadcastActions
|
||||
|
|
|
|||
Loading…
Reference in New Issue