mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Inter-require iD instead of relying on the global (#3256)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import * as Validations from '../validations/index';
|
||||
import { Difference } from './difference';
|
||||
import { Entity } from './entity';
|
||||
import { Graph } from './graph';
|
||||
@@ -172,7 +173,7 @@ export function History(context) {
|
||||
},
|
||||
|
||||
validate: function(changes) {
|
||||
return _(iD.validations)
|
||||
return _(Validations)
|
||||
.map(function(fn) { return fn()(changes, stack[index].graph); })
|
||||
.flatten()
|
||||
.value();
|
||||
|
||||
Reference in New Issue
Block a user