Opened 12 years ago

Closed 6 years ago

#10998 closed enhancement (patchwelcome)

Dojo.gfx: Custom properties for serialization/deserialization

Reported by: rkoppelman Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: DojoX GFX Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:


Requesting an enhancement to the gfx utility methods for serialization/deserialization to allow for handling custom properties. For example, if one were to extend Shape with an additional property like "id":

dojo.extend(dojox.gfx.Shape, {
	id: "-1",
	setId: function(id){ = id;
		return this;
	getId: function() {

If you were deserializing an object array that contained an "id" property value for the shape, the deserialize function should note the property and attempt to call a corresponding setter function for it. As another approach perhaps you could pass an array into the deserialize function that contains the ancillary properties it should look for and attempt to set.

Change History (2)

comment:1 Changed 12 years ago by Eugene Lazutkin

Component: GeneralDojoX GFX
Milestone: tbdfuture
Owner: changed from anonymous to Eugene Lazutkin
Status: newassigned

comment:2 Changed 6 years ago by dylan

Milestone: future1.12
Resolution: patchwelcome
Status: assignedclosed

Given that no one has shown interest in creating a patch in the past 5+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.