#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)
Change History (3)
Changed 14 years ago by
Attachment: | dojo.data_ItemFileStore_20070718.patch added |
---|
comment:1 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Minor updates