chore(ordering): use existing isAny impl
This commit is contained in:
parent
523c10b5c6
commit
6f3dadd403
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue