Open GoogleCodeExporter opened 8 years ago
OK, I modified some JS files to fix it.
I created a function named
ORYX.Core.AbstractShape.triggerSerializeEvent(curRes, dataType) whose code has
been extracted from ORYX.Core.Node.serialize(). This function triggers the
custom function for the serialisation of the shape if it exists.
The first argument curRes is the data we've already got from serialization.
The second argument dataType is a string that gives the data Type ("XML" or
"JSON").
It is a patch I propose. Since I am not familiar with the code, it may be to be
improved.
You need to update editor/client/scripts/Core/abstractshape.js and
editor/client/scripts/Core/node.js.
Attached :
- The new file abstractshape.js
- The new file node.js
To look for modification, search for
"http://code.google.com/p/oryx-editor/issues/detail?id=470#c1" in these files
Cheers
Original comment by florent....@gmail.com
on 8 Jun 2011 at 1:45
Attachments:
Original issue reported on code.google.com by
florent....@gmail.com
on 7 Jun 2011 at 3:36