Module: js-whatever/js/model-any-changed-attribute-listener

js-whatever/js/model-any-changed-attribute-listener

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
Source:
Returns:

The change callback added as a listener on the model; useful for removing the callback later

Type
function
Source:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.