src/View.js
function()
	{
		var l;
		var clonedSubview;
		var options = this.options;

		options.parentView = null;
		options.env = this.env;
		options._clone = true;

		var clonedView = new this.constructor(options);

		if(this.subviews !== null)
		{
			l = this.subviews.length;
			clonedView.subviews = new Array(l);
			while(l--)
			{
				clonedSubview = this.subviews[l]._clone();
				clonedView.subviews[l] = clonedSubview;
			}
		}

		if(this._subviewsStruct !== null)
		{
			clonedView._subviewsStruct = this._subviewsStruct.slice();
		}
		if(this._explicitSubviewsStruct !== null)
		{
			clonedView._explicitSubviewsStruct = this._explicitSubviewsStruct.slice();
		}

		if(this._collectionBinder)
		{
			clonedView._collectionBinder = new CollectionBinder(
			{
				view: clonedView,
				keyPath: this._collectionBinder.keyPath,
				animate: this._collectionBinder.animate,
				keyProp: this._collectionBinder.keyProp,
				collection: null,
				collectionPathArray: this._collectionBinder.collectionPathArray
			});
		}

		if(this._modelBindersMap)
		{
			clonedView._modelBindersMap = this._modelBindersMap.clone();
			clonedView._modelBindersMap.setView(clonedView);
		}
		clonedView._itemAlias = this._itemAlias;

		return clonedView;
	}
function()
	{
		var l;
		var clonedSubview;
		var options = this.options;

		options.parentView = null;
		options.env = this.env;
		options._clone = true;

		var clonedView = new this.constructor(options);

		if(this.subviews !== null)
		{
			l = this.subviews.length;
			clonedView.subviews = new Array(l);
			while(l--)
			{
				clonedSubview = this.subviews[l]._clone();
				clonedView.subviews[l] = clonedSubview;
			}
		}

		if(this._subviewsStruct !== null)
		{
			clonedView._subviewsStruct = this._subviewsStruct.slice();
		}
		if(this._explicitSubviewsStruct !== null)
		{
			clonedView._explicitSubviewsStruct = this._explicitSubviewsStruct.slice();
		}

		if(this._collectionBinder)
		{
			clonedView._collectionBinder = new CollectionBinder(
			{
				view: clonedView,
				keyPath: this._collectionBinder.keyPath,
				animate: this._collectionBinder.animate,
				keyProp: this._collectionBinder.keyProp,
				collection: null,
				collectionPathArray: this._collectionBinder.collectionPathArray
			});
		}

		if(this._modelBindersMap)
		{
			clonedView._modelBindersMap = this._modelBindersMap.clone();
			clonedView._modelBindersMap.setView(clonedView);
		}
		clonedView._itemAlias = this._itemAlias;

		return clonedView;
	}
function ( ) { var l ; var clonedSubview ; var options = this . options ; options . parentView = null ; options . env = this . env ; options . _clone = true ; var clonedView = new this . constructor ( options ) ; if ( this . subviews !== null ) { l = this . subviews . length ; clonedView . subviews = new Array ( l ) ; while ( l -- ) { clonedSubview = this . subviews [ l ] . _clone ( ) ; clonedView . subviews [ l ] = clonedSubview ; } } if ( this . _subviewsStruct !== null ) { clonedView . _subviewsStruct = this . _subviewsStruct . slice ( ) ; } if ( this . _explicitSubviewsStruct !== null ) { clonedView . _explicitSubviewsStruct = this . _explicitSubviewsStruct . slice ( ) ; } if ( this . _collectionBinder ) { clonedView . _collectionBinder = new CollectionBinder ( { view : clonedView , keyPath : this . _collectionBinder . keyPath , animate : this . _collectionBinder . animate , keyProp : this . _collectionBinder . keyProp , collection : null , collectionPathArray : this . _collectionBinder . collectionPathArray } ) ; } if ( this . _modelBindersMap ) { clonedView . _modelBindersMap = this . _modelBindersMap . clone ( ) ; clonedView . _modelBindersMap . setView ( clonedView ) ; } clonedView . _itemAlias = this . _itemAlias ; return clonedView ; }
Clones this binding view

@return {View} Cloned view
Clones this binding view