diff --git a/lib/features/ordering/BpmnOrderingProvider.js b/lib/features/ordering/BpmnOrderingProvider.js index 6e474458..0722ad99 100644 --- a/lib/features/ordering/BpmnOrderingProvider.js +++ b/lib/features/ordering/BpmnOrderingProvider.js @@ -4,7 +4,7 @@ var inherits = require('inherits'); var OrderingProvider = require('diagram-js/lib/features/ordering/OrderingProvider'); -var is = require('../../util/ModelUtil').is; +var isAny = require('../modeling/util/ModelingUtil').isAny; var findIndex = require('lodash/array/findIndex'); @@ -70,14 +70,6 @@ function BpmnOrderingProvider(eventBus) { return order; } - var any = require('lodash/collection/any'); - - function isAny(element, types) { - return any(types, function(t) { - return is(element, t); - }); - } - function findActualParent(element, newParent, containers) { var actualParent = newParent;