src/CollectionBinder.js
function()
	{
		var boundView, i, l;

		// Destroy boundviews
		if(this.boundViews !== null)
		{
			for(i = 0, l = this.boundViews.length; i < l; i++)
			{
				boundView = this.boundViews[i];
				boundView.destroyAll();
				if(boundView.element && boundView.element.parentNode) boundView.element.parentNode.removeChild(boundView.element);
			}
			this.boundViews = null;
		}

		if(this.anchor)
		{
			if(this.anchor.parentNode)
			{
				this.anchor.parentNode.insertBefore(this.view.element, this.anchor.nextSibling);
				this.anchor.parentNode.removeChild(this.anchor);
			}
			this.anchor = null;
		}
		if(this.elementTemplate)
		{
			if(this.elementTemplate.parentNode)
			{
				this.elementTemplate.parentNode.removeChild(this.elementTemplate);
			}
			this.elementTemplate = null;
		}
		this.viewTemplate = null;
		if(this.collection) this.collection = null;
	}
function()
	{
		var boundView, i, l;

		// Destroy boundviews
		if(this.boundViews !== null)
		{
			for(i = 0, l = this.boundViews.length; i < l; i++)
			{
				boundView = this.boundViews[i];
				boundView.destroyAll();
				if(boundView.element && boundView.element.parentNode) boundView.element.parentNode.removeChild(boundView.element);
			}
			this.boundViews = null;
		}

		if(this.anchor)
		{
			if(this.anchor.parentNode)
			{
				this.anchor.parentNode.insertBefore(this.view.element, this.anchor.nextSibling);
				this.anchor.parentNode.removeChild(this.anchor);
			}
			this.anchor = null;
		}
		if(this.elementTemplate)
		{
			if(this.elementTemplate.parentNode)
			{
				this.elementTemplate.parentNode.removeChild(this.elementTemplate);
			}
			this.elementTemplate = null;
		}
		this.viewTemplate = null;
		if(this.collection) this.collection = null;
	}
function ( ) { var boundView , i , l ; // Destroy boundviews if ( this . boundViews !== null ) { for ( i = 0 , l = this . boundViews . length ; i < l ; i ++ ) { boundView = this . boundViews [ i ] ; boundView . destroyAll ( ) ; if ( boundView . element && boundView . element . parentNode ) boundView . element . parentNode . removeChild ( boundView . element ) ; } this . boundViews = null ; } if ( this . anchor ) { if ( this . anchor . parentNode ) { this . anchor . parentNode . insertBefore ( this . view . element , this . anchor . nextSibling ) ; this . anchor . parentNode . removeChild ( this . anchor ) ; } this . anchor = null ; } if ( this . elementTemplate ) { if ( this . elementTemplate . parentNode ) { this . elementTemplate . parentNode . removeChild ( this . elementTemplate ) ; } this . elementTemplate = null ; } this . viewTemplate = null ; if ( this . collection ) this . collection = null ; }
Destroys previously bound views.

@private
Destroys previously bound views .