Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3792 closed defect (fixed)

0.9: Tweak to the type map/custom serialization.deserialization code in ItemFile*Store

Reported by: Jared Jurkiewicz Owned by: Jared Jurkiewicz
Priority: high Milestone: 0.9
Component: Data Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

0.9: Tweak to the type map/custom serialization.deserialization code in ItemFile?*Store

This is a minor update to allow for simple type mapping as well as general case type mapping. So for simple objects that can be created by passing _value to the constructor and serialized via .toString(), typemaps are just:

var typeMap = { type: constructor, ... };

For complex mapping that require special processing on the input or output formats, then you can use a general case mapping of:

var typeMap = {

type: {

type: constructor, deserialize: function(value), seralize: function(object),

}, ...

}

Attachments (1)

dojo.data_ItemFileStore_20070718.patch (10.4 KB) - added by Jared Jurkiewicz 12 years ago.
Minor updates

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Jared Jurkiewicz

Minor updates

comment:1 Changed 12 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [9699]) Updates to custom data type handling. fixes #3792

comment:2 Changed 12 years ago by Jared Jurkiewicz

Tested on:

IE 6.0 Firefox 2.0.0.4 Seamonkey 1.1.2 Safari B3

Note: See TracTickets for help on using tickets.