Constructor
new AssetColors()
- Since:
- Source:
Extends
Members
model :Backbone.Model
The class/model that this collection contains.
Type:
- Source:
Methods
comparator()
Add custom sort functionality such that values are sorted
numerically, but keep the special value key words "min" and "max" at
the beginning or end of the collection, respectively.
- Since:
- Source:
getAttr(attr) → {Array}
For any attribute that exists in the models in this collection, return an
array of the values for that attribute.
Parameters:
Name |
Type |
Description |
attr |
string
|
The attribute to get the values for. |
- Since:
- Source:
Returns:
-
Type
-
Array
getDefaultColor() → {AssetColor}
Finds the last color model in the collection. If there are no colors in the
collection, returns the default color set in a new Asset Color model.
- Source:
Returns:
-
Type
-
AssetColor