lib/conbo.js
function(begin, length)
	{
		begin || (begin = 0);
		if (conbo.isUndefined(length)) length = this.length;
		
		var inserts = conbo.rest(arguments,2);
		var items = this.source.splice.apply(this.source, [begin, length].concat(inserts));
		
		if (items.length) this.dispatchEvent(new conbo.ConboEvent(conbo.ConboEvent.REMOVE));
		if (inserts.length) this.dispatchEvent(new conbo.ConboEvent(conbo.ConboEvent.ADD));
		
		if (items.length || inserts.length)
		{
			this.dispatchChange('length');
		}
		
		return new conbo.List({source:items});
	}
function(begin, length)
	{
		begin || (begin = 0);
		if (conbo.isUndefined(length)) length = this.length;
		
		var inserts = conbo.rest(arguments,2);
		var items = this.source.splice.apply(this.source, [begin, length].concat(inserts));
		
		if (items.length) this.dispatchEvent(new conbo.ConboEvent(conbo.ConboEvent.REMOVE));
		if (inserts.length) this.dispatchEvent(new conbo.ConboEvent(conbo.ConboEvent.ADD));
		
		if (items.length || inserts.length)
		{
			this.dispatchChange('length');
		}
		
		return new conbo.List({source:items});
	}
function ( begin , length ) { begin || ( begin = 0 ) ; if ( conbo . isUndefined ( length ) ) length = this . length ; var inserts = conbo . rest ( arguments , 2 ) ; var items = this . source . splice . apply ( this . source , [ begin , length ] . concat ( inserts ) ) ; if ( items . length ) this . dispatchEvent ( new conbo . ConboEvent ( conbo . ConboEvent . REMOVE ) ) ; if ( inserts . length ) this . dispatchEvent ( new conbo . ConboEvent ( conbo . ConboEvent . ADD ) ) ; if ( items . length || inserts . length ) { this . dispatchChange ( 'length' ) ; } return new conbo . List ( { source : items } ) ; }
Splice out a sub-array of items from the collection.
Splice out a sub - array of items from the collection .