added -setIwcHandler
This commit is contained in:
parent
bb18c8d0f4
commit
9a1b0b7ced
@ -4,8 +4,10 @@
|
|||||||
# @param {String} initial_user_id Optional. You can set you own user_id (since the ids of duiclient are not always unique)
|
# @param {String} initial_user_id Optional. You can set you own user_id (since the ids of duiclient are not always unique)
|
||||||
#
|
#
|
||||||
createIwcConnector = (callback, options)->
|
createIwcConnector = (callback, options)->
|
||||||
|
userIwcHandler = null
|
||||||
if options?
|
if options?
|
||||||
{iwcHandler: userIwcHandler} = options
|
{iwcHandler: userIwcHandler} = options
|
||||||
|
|
||||||
iwcHandler = {}
|
iwcHandler = {}
|
||||||
duiClient = new DUIClient()
|
duiClient = new DUIClient()
|
||||||
#@duiClient = new iwc.Client()
|
#@duiClient = new iwc.Client()
|
||||||
@ -110,6 +112,8 @@ createIwcConnector = (callback, options)->
|
|||||||
|
|
||||||
@duiClient.sendIntent(intent)
|
@duiClient.sendIntent(intent)
|
||||||
|
|
||||||
|
setIwcHandler: (f)->
|
||||||
|
userIwcHandler = f
|
||||||
|
|
||||||
|
|
||||||
init = ()->
|
init = ()->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user