mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
add crossing_way validation
Tests are also added and passed. One thing to note: I had to add the tree() function to history so that I can use the tree in the test; hope that's fine.
This commit is contained in:
@@ -122,6 +122,11 @@ export function coreHistory(context) {
|
||||
},
|
||||
|
||||
|
||||
tree: function() {
|
||||
return _tree;
|
||||
},
|
||||
|
||||
|
||||
base: function() {
|
||||
return _stack[0].graph;
|
||||
},
|
||||
@@ -285,7 +290,7 @@ export function coreHistory(context) {
|
||||
return _flatten(_map(
|
||||
validations,
|
||||
function(fn) {
|
||||
return fn(context)(changes, _stack[_index].graph);
|
||||
return fn(context)(changes, _stack[_index].graph, _tree);
|
||||
}
|
||||
));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user