dojox/lang/oo/rearrange (version 1.10)

Summary

Process properties in place by removing and renaming them.

Properties of an object are to be renamed or removed specified by "map" argument. Only own properties of "map" are processed.

Usage

rearrange(bag,map);
Parameter Type Description
bag Object

the object to be processed

map Object

the dictionary for renaming (false value indicates removal of the named property)

Returns:Object

the original object

See the dojox/lang/oo/rearrange reference documentation for more information.

Examples

Example 1

oo.rearrange(bag, {
    abc: "def", // rename "abc" attribute to "def"
    ghi: null   // remove/hide "ghi" attribute
});

Method Summary

Methods

Error in the documentation? Can’t find what you are looking for? Let us know!