Inter-require iD instead of relying on the global (#3256)

This commit is contained in:
Tom MacWright
2016-07-19 10:30:50 -04:00
committed by GitHub
parent 7ca6d06254
commit 3856b1ff2f
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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();