[gnome-maps/wip/favorites: 1/9] PlaceStore: Fix exists method



commit e2a1cc51cb4a52299430ac2a22b0e87ce5ed2443
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sat Nov 22 00:56:52 2014 +0100

    PlaceStore: Fix exists method
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722102

 src/placeStore.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/placeStore.js b/src/placeStore.js
index 3ed17dc..d35b425 100644
--- a/src/placeStore.js
+++ b/src/placeStore.js
@@ -206,7 +206,7 @@ const PlaceStore = new Lang.Class({
     },
 
     exists: function(osmId, type) {
-        if (type)
+        if (type !== undefined && type !== null)
             return this._typeTable[osmId] === type;
         else
             return this._typeTable[osmId] !== undefined;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]