You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ...
setPersistentAttributes: function (memento) {
this._super(memento)
// ...
// remove all children created in the init method
//
this.resetChildren()
// and restore all children of the JSON document instead.
//
memento.children.forEach((e) => {
let locator = eval("new " + e.locator + "()")
if(e.locatorAttr) {
locator.attr(e.locatorAttr)
}
let child = eval("new " + e.child + "()")
child.setPersistentAttributes(e)
this.add(child, locator)
})
return this
}
The text was updated successfully, but these errors were encountered:
rudolphi
pushed a commit
to rudolphi/draw2d
that referenced
this issue
Jun 6, 2021
Proposed fix in draw2d/src/shape/node/Node.js:
getPersistentAttributes: function () {
let memento = this._super()
},
// ...
setPersistentAttributes: function (memento) {
this._super(memento)
}
The text was updated successfully, but these errors were encountered: