Creates an object which reroutes property and method accesses to other
objects.
The keys in Redirect.map are the 'virtual' properties of the Redirect instance and
the values are the source objects containing the real properties.
The optional Redirect.remap object may be used to map a virtual property to
a property with a different key in the source object. Any virtual properties not in
Redirect.remap will naturally have the same key in the source object.
Creates an object which reroutes property and method accesses to other objects.
The keys in
Redirect.map
are the 'virtual' properties of the Redirect instance and the values are the source objects containing the real properties.The optional
Redirect.remap
object may be used to map a virtual property to a property with a different key in the source object. Any virtual properties not inRedirect.remap
will naturally have the same key in the source object.Example
Param: map
Param: remap