[iotcon] fix issue that startCaching update cb was not invoked 05/94605/2
authorjk.pu <jk.pu@samsung.com>
Tue, 1 Nov 2016 02:06:18 +0000 (11:06 +0900)
committerjk.pu <jk.pu@samsung.com>
Tue, 1 Nov 2016 02:52:20 +0000 (11:52 +0900)
Change-Id: Ifb4b7e0babe672cf85066bb6fc5bc769d9a433c2
Signed-off-by: jk.pu <jk.pu@samsung.com>
src/iotcon/iotcon_api.js

index 5d6fc4737c23ee5db21fefc0349e3e0b975c4921..ad4b7e28c59c87c0894cd3f7fd008f12ffb926aa 100644 (file)
@@ -943,7 +943,7 @@ RemoteResource.prototype.startCaching = function() {
   var callArgs = prepareResourceInfo(this);
 
   var listener = function(result) {
-    native.callIfPossible(args.successCallback(createRepresentation(native.getResultObject(result.data))));
+    native.callIfPossible(args.successCallback(createRepresentation(result.data)));
   }
 
   var result = native.callSync('IotconRemoteResource_startCaching', callArgs);