+++ /dev/null
-PROJECT = Modello_Common
-
-VERSION := 0.0.2
-PACKAGE = $(PROJECT)-$(VERSION)
-
-INSTALL_DIR = ${DESTDIR}/opt/usr/apps/_common
-
-all:
-
-install:
- @echo "Installing Common UI files package, stand by..."
- mkdir -p $(INSTALL_DIR)/css
- mkdir -p $(INSTALL_DIR)/js
- cp -r css $(INSTALL_DIR)/
- cp -r js $(INSTALL_DIR)/
-
for (i = 0; i < list.length; i++) {
var app = list[i];
var subName = app.name.substr(7);
- subName = subName.replace(/\./g, "_").replace(/\ /g, "_");
+ subName = subName.replace(/\./g, "").replace(/\ /g, "");
if (app.name.indexOf('Modello') >= 0) {
var newApp = {
id: app.id,
console.info("Starting up service CarIndicator");
};
+if (typeof Zone !== 'function')
+{
+ window.Zone = function(){return undefined;};
+}
+
function parseInteger(value) {
"use strict";
return parseInt(value, 10);
var zone = mapping.zone;
var subscribeName = signal;
- if (mapping.subscribeName !== undefined) {
+ if (mapping.subscribeName !== "undefined") {
subscribeName = mapping.subscribeName;
}
if (mapping.callBackPropertyName.toLowerCase() === prop.toLowerCase() && !mapping.subscribeCount) {
- mapping.subscribeCount = typeof (mapping.subscribeCount) === 'undefined' ? 0 : mapping.subscribeCount++;
+ mapping.subscribeCount = typeof (mapping.subscribeCount) === "undefined" ? 0 : mapping.subscribeCount++;
- if (typeof (tizen) !== 'undefined' && tizen.vehicle !== undefined && tizen.vehicle[subscribeName] !== undefined) {
+ if (typeof (tizen.vehicle[subscribeName]) !== "undefined") {
if (!(subscribeName.toString().trim().toLowerCase() === "nightmode" && id === this._listenerIDs[0])) {
if (tizen.vehicle[subscribeName]){
var setUpData = tizen.vehicle[subscribeName].get(zone);
self.onDataUpdate(setUpData, self, id);
}
}
- if (typeof (tizen.vehicle[subscribeName].subscribe) !== undefined)
+ if (typeof (tizen.vehicle[subscribeName].subscribe) !== "undefined")
{
console.log("Modello: Subscribing to AMB signal - " + subscribeName);
tizen.vehicle[subscribeName].subscribe(subscribeCallback, zone);
}
} else {
- if (tizen.vehicle[subscribeName] === undefined)
+ if (typeof (tizen.vehicle[subscribeName]) === "undefined")
console.warn(subscribeName + " is not available to subscribe to");
else
console.warn("Tizen API is not available, cannot subscribe to signal", signal);
%prep
%setup -q -n %{name}-%{version}
-%build
-
%install
-rm -rf %{buildroot}
-%make_install
+mkdir -p %{buildroot}%{_datadir}/Modello/Common/
+cp -r css %{buildroot}%{_datadir}/Modello/Common/
+cp -r js %{buildroot}%{_datadir}/Modello/Common/
%files
%defattr(-,root,root,-)
-/opt/usr/apps/_common/*
+%{_datadir}/Modello/Common/js
+%{_datadir}/Modello/Common/css