Removes a specified model watcher. If model is undefined, then the specified watcher is removed from all models.
Called by the framework when re-rendering HTML that includes widgets so that the old/removed widgets are not notified of changes to models.
Argument | Type | Description |
---|---|---|
watcher | Object | The object owning changeFunc specified when watchModel was called. |
model | Object | Model name. If undefined, all registered model watchers for the given watcher are removed. |
0 Comments