feat(import/BpmnTreeWalker): make businessObject#di prop configurable

This allows advanced use-cases such as lazy importing
elements into the diagram.
This commit is contained in:
Nico Rehwaldt 2018-04-25 21:17:33 +02:00
parent 014aabaaf5
commit 67b9711399
1 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@ import {
elementToString
} from './Util';
// TODO: should be configurable: true as well which would allow to remove binding
var diRefs = new Refs({ name: 'bpmnElement', enumerable: true }, { name: 'di' });
var diRefs = new Refs(
{ name: 'bpmnElement', enumerable: true },
{ name: 'di', configurable: true }
);
/**
* Returns true if an element has the given meta-model type