From 9a1b0b7cedb5a058d2270f3427df8e47b8a206cb Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 19 Aug 2014 16:10:23 +0200 Subject: [PATCH] added -setIwcHandler --- lib/Connectors/IwcConnector.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Connectors/IwcConnector.coffee b/lib/Connectors/IwcConnector.coffee index c01042c8..9cecec60 100644 --- a/lib/Connectors/IwcConnector.coffee +++ b/lib/Connectors/IwcConnector.coffee @@ -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) # createIwcConnector = (callback, options)-> + userIwcHandler = null if options? {iwcHandler: userIwcHandler} = options + iwcHandler = {} duiClient = new DUIClient() #@duiClient = new iwc.Client() @@ -110,6 +112,8 @@ createIwcConnector = (callback, options)-> @duiClient.sendIntent(intent) + setIwcHandler: (f)-> + userIwcHandler = f init = ()->