Skip to content

Commit

Permalink
Add note on arrayDelete with array vs. path
Browse files Browse the repository at this point in the history
Fixes #2427.
  • Loading branch information
Arthur Evans committed Sep 10, 2015
1 parent 83cce66 commit d2b71a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/standard/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,16 @@

/**
* Removes an item from an array, if it exists.
*
* If the array is specified by path, a change notification is
* generated, so that observers, data bindings and computed
* properties watching that path can update.
*
* If the array is passed directly, **no change
* notification is generated**.
*
* @method arrayDelete
* @param {String|Array} path Path torray from which to remove the item
* @param {String|Array} path Path to array from which to remove the item
* (or the array itself).
* @param {any} item Item to remove.
* @return {Array} Array containing item removed.
Expand Down

0 comments on commit d2b71a5

Please sign in to comment.