bpmn-js 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-navigated-viewer v9.0.0
2
+ * bpmn-js - bpmn-navigated-viewer v9.0.1
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -8015,6 +8015,11 @@
8015
8015
 
8016
8016
  plane.get('planeElement').forEach(function(diElement) {
8017
8017
  var bo = diElement.bpmnElement;
8018
+
8019
+ if (!bo) {
8020
+ return;
8021
+ }
8022
+
8018
8023
  var parent = bo.$parent;
8019
8024
 
8020
8025
  if (is$1(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {
@@ -8044,7 +8049,7 @@
8044
8049
  var parent = element.parent;
8045
8050
 
8046
8051
  // parent is expanded, get nearest collapsed parent
8047
- while (parent && !collapsedElements.includes(parent)) {
8052
+ while (parent && collapsedElements.indexOf(parent) === -1) {
8048
8053
  parent = parent.$parent;
8049
8054
  }
8050
8055
 
@@ -21301,7 +21306,7 @@
21301
21306
  }
21302
21307
 
21303
21308
  var allowedModifiers = this._getAllowedModifiers(event.target);
21304
- return !allowedModifiers.includes(event.key);
21309
+ return allowedModifiers.indexOf(event.key) === -1;
21305
21310
  };
21306
21311
 
21307
21312
  Keyboard.prototype._getAllowedModifiers = function(element) {