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.
@@ -68,6 +68,11 @@ SubprocessCompatibility.prototype.createNewDiagrams = function(plane) {
68
68
 
69
69
  plane.get('planeElement').forEach(function(diElement) {
70
70
  var bo = diElement.bpmnElement;
71
+
72
+ if (!bo) {
73
+ return;
74
+ }
75
+
71
76
  var parent = bo.$parent;
72
77
 
73
78
  if (is(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {
@@ -97,7 +102,7 @@ SubprocessCompatibility.prototype.createNewDiagrams = function(plane) {
97
102
  var parent = element.parent;
98
103
 
99
104
  // parent is expanded, get nearest collapsed parent
100
- while (parent && !collapsedElements.includes(parent)) {
105
+ while (parent && collapsedElements.indexOf(parent) === -1) {
101
106
  parent = parent.$parent;
102
107
  }
103
108
 
@@ -48,7 +48,7 @@ export default function ToggleCollapseConnectionBehaviour(
48
48
 
49
49
 
50
50
  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) {
52
52
  return;
53
53
  }
54
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-js",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "A bpmn 2.0 toolkit and web modeler",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -100,7 +100,7 @@
100
100
  "dependencies": {
101
101
  "bpmn-moddle": "^7.1.2",
102
102
  "css.escape": "^1.5.1",
103
- "diagram-js": "^8.1.1",
103
+ "diagram-js": "^8.1.2",
104
104
  "diagram-js-direct-editing": "^1.6.3",
105
105
  "ids": "^1.0.0",
106
106
  "inherits": "^2.0.4",