+* 3.0.20
+- Update Modello Common libraries
+== Dongxing Liu <dongxing.x.liu@intel.com> 2014-07-03
+
* 3.0.19
- Updated help documentation of Vehicle API
== Wenchao Wang <wenchao.wang@intel.com> 2014-06-20
if (mapping.callBackPropertyName.toLowerCase() === prop.toLowerCase() && !mapping.subscribeCount) {
mapping.subscribeCount = typeof (mapping.subscribeCount) === 'undefined' ? 0 : mapping.subscribeCount++;
- if (typeof (tizen) !== 'undefined') {
+ if (typeof (tizen) !== 'undefined' && tizen.vehicle !== undefined && tizen.vehicle[subscribeName] !== undefined) {
if (!(subscribeName.toString().trim().toLowerCase() === "nightmode" && id === this._listenerIDs[0])) {
- var setUpData = tizen.vehicle[subscribeName].get(zone);
- self.onDataUpdate(setUpData, self, id);
+ if (tizen.vehicle[subscribeName]){
+ var setUpData = tizen.vehicle[subscribeName].get(zone);
+ if (setUpData !== undefined)
+ self.onDataUpdate(setUpData, self, id);
+ }
}
tizen.vehicle[subscribeName].subscribe(subscribeCallback, zone);
} else {
CarIndicator.prototype.onDataUpdate = function(data, self, lisenersID) {
"use strict";
if (data !== undefined) {
- var zone = data.zone.toString(2);
+ if (data.zone !== undefined)
+ var zone = data.zone.toString(2);
+ else
+ var zone = "0";
var mapping;
for ( var property in data) {