fix(Modeler): clear ids on destroy

This commit is contained in:
Nico Rehwaldt 2016-03-18 13:10:07 +01:00
parent 37eca38dac
commit 1a62e5925b

View File

@ -108,6 +108,10 @@ function Modeler(options) {
this._collectIds(event.definitions, event.context);
}
}, this);
this.on('diagram.destroy', function() {
this.moddle.ids.clear();
}, this);
}
inherits(Modeler, Viewer);