fix(ES6): replace `array.includes` with es5 equivalent
This commit is contained in:
parent
1ba9de6dac
commit
7ff9be7c8a
|
@ -97,7 +97,7 @@ SubprocessCompatibility.prototype.createNewDiagrams = function(plane) {
|
|||
var parent = element.parent;
|
||||
|
||||
// parent is expanded, get nearest collapsed parent
|
||||
while (parent && !collapsedElements.includes(parent)) {
|
||||
while (parent && collapsedElements.indexOf(parent) === -1) {
|
||||
parent = parent.$parent;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ export default function ToggleCollapseConnectionBehaviour(
|
|||
|
||||
|
||||
function handleConnection(c, incoming) {
|
||||
if (allChildren.includes(c.source) && allChildren.includes(c.target)) {
|
||||
if (allChildren.indexOf(c.source) !== -1 && allChildren.indexOf(c.target) !== -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue