Jetpack/Collections: Difference between revisions

Jump to navigation Jump to search
→‎Collection: addAll removeAll
(→‎Collection: addAll removeAll)
Line 65: Line 65:
   * @param item {Object} any JS object
   * @param item {Object} any JS object
   remove : function(item)
   remove : function(item)
 
  * Add all items in |coll| to this list
  * This is just a convenience function.
  * Note: This is intentionally different from |add| and not
  * overloading |all|.
  * @param coll {Collection}
  addAll : function(coll)
 
  * Removes all items in |coll| from this list
  * @param coll {Collection}
  removeAll : function(coll)
    
    
   * Removes all items from the list.
   * Removes all items from the list.
Line 100: Line 111:
   *  debug(item);
   *  debug(item);
   __iterator__ : function()
   __iterator__ : function()
 
 
   * Pass an object that will be called when
   * Pass an object that will be called when
   * items are added or removed from this list.
   * items are added or removed from this list.
Confirmed users
596

edits

Navigation menu