use === instead of ==
[quandoparte] / application / resources / harmattan / qml / StationListPage.js
index 09cbafb..b5c4046 100644 (file)
@@ -4,7 +4,7 @@ var about = undefined
 function showAboutPage()
 {
     var component = Qt.createComponent("AboutPage.qml")
-    if (component.status == Component.Ready) {
+    if (component.status === Component.Ready) {
         about = component.createObject(stationListPage)
         pageStack.push(about)
     } else
@@ -14,12 +14,11 @@ function showAboutPage()
 function loadStation(name)
 {
     var component = Qt.createComponent("StationPage.qml");
-    if (component.status == Component.Ready) {
+    if (component.status === Component.Ready) {
         view = component.createObject(stationListPage)
         stationListPage.stationView = view
         pageStack.push(view)
-        view.html = "<h1>Loading station " + name + "</h1><p>Lorem ipsum</p>"
-        provider.stationSchedule(name)
+        view.name = name
     }
     else
         console.log('Cannot load component: ' + component.errorString());