Function to create a decorator object from a specified "original" object. Properties can be added to or modified in the decorator object without affecting the original object. Useful for widgets that need to add properties to the model in preparation for rendering. Returns Object.
Parameter | Type | Description |
---|---|---|
proto | Object | Object to decorate. The returned decorator object's prototype field will refer to this object. |
clone | Object | Object from which to clone properties into the new decorator object. |
0 Comments