listSet
function
Uniquely identify the set a list represents.
connection.listSet(list)
Returns the listSetProp if it exists.
Parameters
- list
{List}:A list instance.
Returns
{Object}:
An object that can be passed to JSON.stringify
to represent the list.
Use
Many extensions, such as the can-connect/constructor/store/store, need
to have a unique identifier for a list. The
connection.listSet method should return that.
Typically, an item's set is an expando property added to
a list. For example, a list of todos might looks like todos
after the following has run:
var todos = [{_id: 5, name: "do the dishes"}]
todos.set = {due: 'today'};
In this case listSetProp should be set to "set".