mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-14 11:11:14 +08:00
fix: make di
compat property non-enumerable
This commit is contained in:

committed by
fake-join[bot]
![fake-join[bot]](/assets/img/avatar_default.png)
parent
704e4872af
commit
b472823f25
@ -65,6 +65,7 @@ export function ensureCompatDiRef(businessObject) {
|
||||
// bpmnElement can have multiple independent DIs
|
||||
if (!has(businessObject, 'di')) {
|
||||
Object.defineProperty(businessObject, 'di', {
|
||||
enumerable: false,
|
||||
get: function() {
|
||||
throw new Error(DI_ERROR_MESSAGE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user