use === instead of ==
authorLuciano Montanaro <mikelima@cirulla.net>
Thu, 12 Jan 2012 23:08:03 +0000 (00:08 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Thu, 12 Jan 2012 23:08:03 +0000 (00:08 +0100)
application/resources/harmattan/qml/StationListPage.js

index fb630d2..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,7 +14,7 @@ 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)