mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Pass entity array into validators instead of changes object
This commit is contained in:
@@ -293,11 +293,11 @@ export function coreHistory(context) {
|
||||
},
|
||||
|
||||
|
||||
validate: function(changes) {
|
||||
validate: function(entitiesToCheck) {
|
||||
return _flatten(_map(
|
||||
validations,
|
||||
function(fn) {
|
||||
return fn(context)(changes, _stack[_index].graph, _tree);
|
||||
return fn(context)(entitiesToCheck, _stack[_index].graph, _tree);
|
||||
}
|
||||
));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user