lib/collection/index.js
function (item) {
    var i = this.indexOf(item);
    if (!~i) return false;
    this.source.splice(i, 1);
    this._updateInfo();

    this.emit("remove", item, i);
    this.emit("update", { remove: [item] });
    return item;
  }
function (item) {
    var i = this.indexOf(item);
    if (!~i) return false;
    this.source.splice(i, 1);
    this._updateInfo();

    this.emit("remove", item, i);
    this.emit("update", { remove: [item] });
    return item;
  }
function ( item ) { var i = this . indexOf ( item ) ; if ( ! ~ i ) return false ; this . source . splice ( i , 1 ) ; this . _updateInfo ( ) ; this . emit ( "remove" , item , i ) ; this . emit ( "update" , { remove : [ item ] } ) ; return item ; }
Removes an item from the collection
@method remove
@param {Object} item item to remove
Removes an item from the collection