Oh thanks for explanation : )
would other types would have different approach of implementing this saveTo... functionality?
for example custom DiagramLink does not work the same as ShapeNode...
an error hapens in
saveToXml: function (xmlElement, context) {
CustomDiagramLink.callBaseMethod(this, "saveToXml", [xmlElement, context]);
and i have in constructor this liner:
CustomDiagramLink.xmlInfo = { classId: "CustomDiagramLink", classVersion: 1 };
I am getting an error:
Uncaught Error: Key type not supported.
at a.HashTable.b.hashCode (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:13707)
at a.HashTable.b.bucket (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:13321)
at a.HashTable.b.get (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:12827)
at a.HashTable.b.contains (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:12946)
at b.Dictionary.a.contains (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:10996)
at b.XmlPersistContext.writeResource (eval at <anonymous> (MindFusion.Diagramming.js:1), <anonymous>:1:503074)
at b.XmlPersistContext.writeStyle (eval at <anonymous> (MindFusion.Diagramming.js:1), <anonymous>:1:506528)
at
CustomDiagramLink.saveToXml (eval at <anonymous> (MindFusion.Diagramming.js:1), <anonymous>:1:186716)
at Function.Type$callBaseMethod [as callBaseMethod] (ScriptResource.axd?d=xAP30EJC1uto2ocBoZGz0WrboLPcU9x9sb9g6Aj4Jzj09VOgdk0khgyARw
yOFsp88Egggj5GW3WfnR…:1546)
at Object.callBaseMethod (eval at <anonymous> (ScriptResource.axd?d=NBS99sn4hN-SzMzn4tICCPcA-6j-sFKO0T6He6kv35tXwxgXBblHO5Mh6M
gZHJ-scfdKb47jcDnwJr…:1), <anonymous>:1:850)