Skip to content

Commit 7ff9be7

Browse files
marstammfake-join[bot]
authored andcommitted
fix(ES6): replace array.includes with es5 equivalent
1 parent 1ba9de6 commit 7ff9be7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/features/drilldown/SubprocessCompatibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ SubprocessCompatibility.prototype.createNewDiagrams = function(plane) {
9797
var parent = element.parent;
9898

9999
// parent is expanded, get nearest collapsed parent
100-
while (parent && !collapsedElements.includes(parent)) {
100+
while (parent && collapsedElements.indexOf(parent) === -1) {
101101
parent = parent.$parent;
102102
}
103103

lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ToggleCollapseConnectionBehaviour(
4848

4949

5050
function handleConnection(c, incoming) {
51-
if (allChildren.includes(c.source) && allChildren.includes(c.target)) {
51+
if (allChildren.indexOf(c.source) !== -1 && allChildren.indexOf(c.target) !== -1) {
5252
return;
5353
}
5454

0 commit comments

Comments
 (0)