Build with oauth, use more chaining

This commit is contained in:
Tom MacWright
2012-12-02 14:20:57 -05:00
parent 28f8275526
commit 4f7d9460ae
4 changed files with 5 additions and 4 deletions

View File

@@ -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 \

View File

@@ -52,7 +52,7 @@
<body>
<div id="iD"></div>
<script>
iD(document.getElementById('iD'));
var id = iD(document.getElementById('iD'));
</script>
</body>
</html>

View File

@@ -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() {

View File

@@ -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;