diff --git a/Makefile b/Makefile index 7154843b8..71128143f 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ all: \ js/lib/jxon.js \ js/lib/lodash.js \ js/id/id.js \ + js/id/oauth.js \ js/id/connection.js \ js/id/util.js \ js/id/actions/*.js \ diff --git a/index.html b/index.html index 89d72ffd8..8428b300f 100644 --- a/index.html +++ b/index.html @@ -52,7 +52,7 @@
diff --git a/js/id/id.js b/js/id/id.js index 9ac5371fa..29d2ebd6b 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -74,9 +74,7 @@ var iD = function(container) { connection.putChangeset(map.history.changes(), e.comment, function() { l.remove(); map.history = iD.History(); - map.flush(); - map.update(); - map.redraw(); + map.flush().redraw(); }); } connection.authenticate(function() { diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 0b2839741..515fa17fa 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -423,6 +423,7 @@ iD.Map = function(elem, connection) { } else { hideVector(); } + return map; } map.perform = function(action) { @@ -512,6 +513,7 @@ iD.Map = function(elem, connection) { map.flush = function () { apiTilesLoaded = {}; + return map; }; map.surface = surface;