[gnome-maps] PlaceStore: Fix exists method
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] PlaceStore: Fix exists method
- Date: Fri, 21 Nov 2014 23:59:30 +0000 (UTC)
commit 2691dbabbefae4b341a9af102c9fa38be2e8a4f5
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sat Nov 22 00:56:52 2014 +0100
PlaceStore: Fix exists method
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]