mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-12 22:26:07 +00:00
Build with oauth, use more chaining
This commit is contained in:
1
Makefile
1
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 \
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<body>
|
||||
<div id="iD"></div>
|
||||
<script>
|
||||
iD(document.getElementById('iD'));
|
||||
var id = iD(document.getElementById('iD'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user