mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-05 13:43:58 +00:00
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…
x
Reference in New Issue
Block a user