From 67b971139924564b02a8c6f9bf2d3504a07dff89 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 25 Apr 2018 21:17:33 +0200 Subject: [PATCH] feat(import/BpmnTreeWalker): make businessObject#di prop configurable This allows advanced use-cases such as lazy importing elements into the diagram. --- lib/import/BpmnTreeWalker.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/import/BpmnTreeWalker.js b/lib/import/BpmnTreeWalker.js index db8210d7..ca70ff0e 100644 --- a/lib/import/BpmnTreeWalker.js +++ b/lib/import/BpmnTreeWalker.js @@ -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