From: Tomasz Marciniak Date: Thu, 6 Aug 2015 11:18:37 +0000 (+0200) Subject: [Bluetooth] Fix for returned BluetoothGATTService object. X-Git-Tag: submit/tizen/20151026.073646^2^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=729361eef5770ed901f3998e007653dce97d872b;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Bluetooth] Fix for returned BluetoothGATTService object. [Verification] Code compiles. Object is correctly created. Change-Id: Iaab2ee5bade9c6a0e91870996b3e454591eae27e Signed-off-by: Tomasz Marciniak --- diff --git a/src/bluetooth/bluetooth_api.js b/src/bluetooth/bluetooth_api.js index 0e6c0a40..6f90376f 100755 --- a/src/bluetooth/bluetooth_api.js +++ b/src/bluetooth/bluetooth_api.js @@ -685,7 +685,7 @@ BluetoothLEDevice.prototype.getService = function() { if (native.isFailure(result)) { throw native.getErrorObject(result); } else { - return BluetoothGATTService(native.getResultObject(result)); + return new BluetoothGATTService(native.getResultObject(result)); } };