chore(ordering): use existing isAny impl

This commit is contained in:
Nico Rehwaldt 2015-10-10 01:34:46 +02:00 committed by pedesen
parent 523c10b5c6
commit 6f3dadd403
1 changed files with 1 additions and 9 deletions

View File

@ -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;