require("js-whatever/js/model-any-changed-attribute-listener")(listener, model, attributes, callback) → {function}
Listen to change events on the given model, calling the callback if one of the given attributes has
changed. The callback is called with standard Backbone change event arguments in the context of the listener.
Parameters:
| Name | Type | Description |
|---|---|---|
listener |
Backbone.Events | |
model |
Backbone.Model | |
attributes |
Array.<String> | |
callback |
function |
Returns:
The change callback added as a listener on the model; useful for removing the callback later
- Type
- function