[gnome-maps/wip/osm-edit: 42/47] osmApi: Make comment and source optional for changesets.
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/osm-edit: 42/47] osmApi: Make comment and source optional for changesets.
- Date: Thu, 30 Apr 2015 13:00:54 +0000 (UTC)
commit 5027b8ae0b4c1800b00dd07681f2efe4b904ddd2
Author: Marcus Lundblad <ml update uu se>
Date: Sat Mar 14 17:38:30 2015 +0100
osmApi: Make comment and source optional for changesets.
src/osmChangeset.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/osmChangeset.js b/src/osmChangeset.js
index 25af457..21f3f00 100644
--- a/src/osmChangeset.js
+++ b/src/osmChangeset.js
@@ -32,8 +32,11 @@ const OSMChangeset = new Lang.Class({
// add default tags
this.setTag('created_by', 'gnome-maps ' + pkg.version);
- this.setTag('comment', comment);
- this.setTag('source', source);
+
+ if (comment)
+ this.setTag('comment', comment);
+ if (source)
+ this.setTag('source', source);
// undefined changeset ID until the changeset has been opened
this._id = undefined;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]