Removing getHistory call, it is a synchronous call and is taking 25+ seconds to complete. 71/8871/1 submit/tizen/20130828.232753
authorbrianjjones <brian.j.jones@intel.com>
Wed, 28 Aug 2013 23:21:55 +0000 (16:21 -0700)
committerbrianjjones <brian.j.jones@intel.com>
Wed, 28 Aug 2013 23:21:55 +0000 (16:21 -0700)
Change-Id: Iaa66bc31a703d681977450b2575979a06a718a9b
Signed-off-by: brianjjones <brian.j.jones@intel.com>
business.js

index 46a7917..f383e78 100644 (file)
@@ -45,22 +45,6 @@ window.onload = function()
     var vehicleSpeed = vehicle.get("VehicleSpeed");
     console.log("Vehicle speed: " + vehicleSpeed.vehicleSpeed);
 
-    try {
-         var begin = new Date(10000000);
-         var end = new Date();
-         vehicle.getHistory("VehicleSpeed", begin, end ,
-                                function(data){ 
-                                     console.log("Vehicle data: " +
-                                     data.toString()); 
-                                }, 
-                                function(err) {
-                                      console.log("getHistory() Error: " + err); 
-                            });
-    }
-    catch(err){
-         console.log("Vehicle GetHistory failed!" + err);
-    }
-
     if(typeof(Storage)!== "undefined")
     {
         addyTemp = localStorage.address;