www.webOShelp.net

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

Home Resources API Reference Mojo.Controller.SceneController.watchModel(model, who, changeFunc)

Mojo.Controller.SceneController.watchModel(model, who, changeFunc)

Sign up for notifications when changes are made to the specified model.

When someone calls modelChanged on the specified model, the changeFunc will be called. Usually used by the framework to automatically notify widgets when their models change.

Argument Type Description
model Object The model to watch for changes.
who Object The object that owns the changeFunc. Used to ensure that objects are not notified of their own changes to the model and that changeFunc is called in the context of who.
changeFunc Object Function called when modelChanged is called on model.
 

0 Comments

    Add Comment


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