src/View.js
function()
	{
		if(this._collectionBinder)
		{
			this._collectionBinder.destroyBoundViews();
		}
		else
		{
			var subView, i, l;

			// Destroy subviews
			if(this.subviews !== null)
			{
				for(i = 0, l = this.subviews.length; i < l; i++)
				{
					subView = this.subviews[i];
					subView.destroyAll();
				}
			}
			this.subviews = null;
			this._subviewsStruct = null;
		}
	}
function()
	{
		if(this._collectionBinder)
		{
			this._collectionBinder.destroyBoundViews();
		}
		else
		{
			var subView, i, l;

			// Destroy subviews
			if(this.subviews !== null)
			{
				for(i = 0, l = this.subviews.length; i < l; i++)
				{
					subView = this.subviews[i];
					subView.destroyAll();
				}
			}
			this.subviews = null;
			this._subviewsStruct = null;
		}
	}
function ( ) { if ( this . _collectionBinder ) { this . _collectionBinder . destroyBoundViews ( ) ; } else { var subView , i , l ; // Destroy subviews if ( this . subviews !== null ) { for ( i = 0 , l = this . subviews . length ; i < l ; i ++ ) { subView = this . subviews [ i ] ; subView . destroyAll ( ) ; } } this . subviews = null ; this . _subviewsStruct = null ; } }
Destroys the subviews. It will be called automatically. Should not be called directly.
Destroys the subviews . It will be called automatically . Should not be called directly .