State.js revision 698543a874206e0c411b376e0c2892233a6a8fef
394N/A * Managed Attribute Provider 394N/A * Maintain state for a collection of items. Individual properties 394N/A * are stored in hash tables. This is instead of having state objects 394N/A * for each item in the collection. For large collections, especially 394N/A * changing ones, this approach may perform better. 394N/A * Add an item with all of the properties in the supplied object. 394N/A * @param name {string} identifier for this attribute 394N/A * @param o hash of attributes 2818N/A * Add an item with the property and value provided 2818N/A * @param name {string} identifier for this attribute 3817N/A * @param key {string} property identifier 3817N/A * @param val {Any} property value 1716N/A * Remove entire item, or optionally specified fields 1716N/A * @param name {string} name of attribute 394N/A * @param o {string|object|array} single key or collection of keys to delete Y.
each(o || d,
function(v, k) {
* For a given item, gets an attribute. If key is not * supplied, a disposable object with all attributes is * returned. Use of the latter option makes sense when * working with single items, but not if object explosion * might cause gc problems. * @param name {string} name of attribute * @param key {string} optional attribute to get * @return either the value of the supplied key or an object with Y.
each(d,
function(v, k) {