mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00: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();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { Reverse } from '../actions/reverse';
|
||||
|
||||
// For fixing up rendering of multipolygons with tags on the outer member.
|
||||
// https://github.com/openstreetmap/iD/issues/613
|
||||
export function isSimpleMultipolygonOuterMember(entity, graph) {
|
||||
@@ -81,7 +83,7 @@ export function joinWays(array, graph) {
|
||||
}
|
||||
|
||||
function reverse(member) {
|
||||
return member.tags ? iD.actions.Reverse(member.id, {reverseOneway: true})(graph).entity(member.id) : member;
|
||||
return member.tags ? Reverse(member.id, {reverseOneway: true})(graph).entity(member.id) : member;
|
||||
}
|
||||
|
||||
while (array.length) {
|
||||
|
||||
Reference in New Issue
Block a user