[HAM] change codes to check whether the option is undefied [version] 0.89 84/71984/1
authortaekeun.kang <taekeun.kang@samsung.com>
Mon, 30 May 2016 05:54:54 +0000 (14:54 +0900)
committertaekeun.kang <taekeun.kang@samsung.com>
Mon, 30 May 2016 05:54:54 +0000 (14:54 +0900)
Change-Id: Ic83d343669a4e283de1d3f637a0c07a80d983b21
Signed-off-by: taekeun.kang <taekeun.kang@samsung.com>
packaging/webapi-plugins.spec
src/humanactivitymonitor/humanactivitymonitor_api.js

index 19fc590cab3f6c4243526651753a2e646bd2b481..42571c62f9f0a92c1575b1f1462b173f2b661f3a 100644 (file)
@@ -10,7 +10,7 @@
 %define crosswalk_extensions_path %{_libdir}/%{crosswalk_extensions}
 
 Name:       webapi-plugins
-Version:    0.88
+Version:    0.89
 Release:    0
 License:    Apache-2.0 and BSD-2.0 and MIT
 Group:      Development/Libraries
index 63bb34ad96b4a7a6d3087b177f74858487f8dcdf..fd442d979fc9e19f3491258fa9b4335360fbbf95 100755 (executable)
@@ -246,13 +246,13 @@ HumanActivityMonitorManager.prototype.start = function(type, changedCallback) {
 
   switch (args.type) {
   case HumanActivityType.GPS:
-    callbackInterval = !type_.isNullOrUndefined(args.option) ?
+    callbackInterval = !type_.isNullOrUndefined(args.option.callbackInterval) ?
         args.option.callbackInterval : 150000;
-    sampleInterval = !type_.isNullOrUndefined(args.option) ?
+    sampleInterval = !type_.isNullOrUndefined(args.option.sampleInterval) ?
         args.option.sampleInterval : 1000;
     break;
   case HumanActivityType.HRM:
-    callbackInterval = !type_.isNullOrUndefined(args.option) ?
+    callbackInterval = !type_.isNullOrUndefined(args.option.callbackInterval) ?
         args.option.callbackInterval : 100;
     if (callbackInterval < 10 || callbackInterval > 1000) {
       throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR,