Use iD.version

This commit is contained in:
John Firebaugh
2013-02-01 12:46:01 -05:00
parent fe49e8fb77
commit 0bcb0520d8
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -4,7 +4,6 @@ iD.Connection = function() {
url = 'http://www.openstreetmap.org',
connection = {},
user = {},
version,
keys,
inflight = {},
loadedTiles = {},
@@ -186,7 +185,7 @@ iD.Connection = function() {
content: JXON.stringify(connection.changesetJXON({
imagery_used: imagery_used.join(';'),
comment: comment,
created_by: 'iD ' + (version || '')
created_by: 'iD ' + iD.version
}))
}, function (err, changeset_id) {
if (err) return callback(err);
@@ -322,12 +321,6 @@ iD.Connection = function() {
return oauth.authenticate(done);
};
connection.version = function(_) {
if (!arguments.length) return version;
version = _;
return connection;
};
connection.bboxFromAPI = bboxFromAPI;
connection.changesetUrl = changesetUrl;
connection.loadFromURL = loadFromURL;
+1 -1
View File
@@ -1,7 +1,7 @@
window.iD = function () {
var context = {},
history = iD.History(),
connection = iD.Connection().version(iD.version),
connection = iD.Connection(),
dispatch = d3.dispatch('enter', 'exit'),
mode,
container,