[gnome-maps/wip/favorites: 1/9] PlaceStore: Fix exists method
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/favorites: 1/9] PlaceStore: Fix exists method
- Date: Sat, 22 Nov 2014 12:42:08 +0000 (UTC)
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]