eachAttribute (callback, binding)
Iterates through all the attributes of the model, calling the passed function on each attribute.
Example
snapshot.eachAttribute(function(name, meta) { // ... });
Parameters:
-
callback
Function
- the callback to execute
-
binding
[Object]
- the value to which the callback's `this` should be bound
Please login to continue.