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