Permalink
Browse files

Added 'indexOf' method to model.list

  • Loading branch information...
1 parent 87d342f commit 75004b1d5ed10aa804ff3c42524008481d92dd12 @amcdnl amcdnl committed Mar 20, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 model/list/list.js
View
@@ -761,6 +761,14 @@ steal('jquery/model').then(function( $ ) {
*/
splice: [].splice,
/**
+ * @function indexOf
+ * Finds the index of the item in the list. Returns -1 if not found.
+ *
+ * list.indexOf(item)
+ *
+ */
+ indexOf: [].indexOf,
+ /**
* @function sort
* Sorts the instances in the list.
*

0 comments on commit 75004b1

Please sign in to comment.