[NFC] Fix addHCEEventListener
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Thu, 26 Mar 2015 12:39:36 +0000 (13:39 +0100)
committerRafal Galka <r.galka@samsung.com>
Thu, 26 Mar 2015 12:55:12 +0000 (21:55 +0900)
[Verification]
Related TCT should pass

Change-Id: Ib438d82eb1271bc28fa024736c0a99f9830fab6b
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
src/nfc/nfc_api.js

index f1db9f0..6f63f30 100644 (file)
@@ -91,7 +91,8 @@ ListenerManager.prototype.onListenerCalled = function(msg) {
       } else if ('Transaction' === msg.type) {
         this.listeners[key](msg.aid, msg.data);
       } else if('HCEEventData' === msg.type) {
-        this.listeners[key](new HCEEventData(msg));
+        var hceData = new HCEEventData(msg.result);
+        this.listeners[key](hceData);
       }
     }
   }