www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Model.decorate(proto, clone)

Mojo.Model.decorate(proto, clone)

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

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)