js/core/List.js
function (index, options) {
            options = options || {};

            if (index > -1 && index < this.$items.length) {
                var items = this.$items.splice(index, 1),
                    item = items[0];

                if (options.silent !== true) {
                    this.trigger('remove', {item: item, index: index});
                }
                if (item instanceof Bindable) {
                    item.unbind('*', this._onItemEvent, this);
                    item.unbind('change', this._onItemChange, this);
                }
                return items[0];
            }
            return null;
        }
function (index, options) {
            options = options || {};

            if (index > -1 && index < this.$items.length) {
                var items = this.$items.splice(index, 1),
                    item = items[0];

                if (options.silent !== true) {
                    this.trigger('remove', {item: item, index: index});
                }
                if (item instanceof Bindable) {
                    item.unbind('*', this._onItemEvent, this);
                    item.unbind('change', this._onItemChange, this);
                }
                return items[0];
            }
            return null;
        }
function ( index , options ) { options = options || { } ; if ( index > - 1 && index < this . $items . length ) { var items = this . $items . splice ( index , 1 ) , item = items [ 0 ] ; if ( options . silent !== true ) { this . trigger ( 'remove' , { item : item , index : index } ) ; } if ( item instanceof Bindable ) { item . unbind ( '*' , this . _onItemEvent , this ) ; item . unbind ( 'change' , this . _onItemChange , this ) ; } return items [ 0 ] ; } return null ; }
Removes one item a specific index and triggers remove event
@param {Number} index
@param {Object} options
@return {Object} removed item
Removes one item a specific index and triggers remove event