src/CollectionBinder.js
function()
	{
		this.anchor = this.view.env.document.createTextNode('');
		var el = this.view.element;

		if(el.parentNode)
		{
			el.parentNode.insertBefore(this.anchor, el.nextSibling);
			el.parentNode.removeChild(el);
		}

		this.boundViews = [];

		// Boundview options:
		this.boundViewName = this.view.element.getAttribute(settings.DATA_VIEW_ATTR);
		var opt = this.view.element.getAttribute(settings.DATA_OPTIONS_ATTR);

		this.boundViewOptions = opt ? JSON.parse(opt) : {};
		this.boundViewOptions.parentView = this.view;
		this.boundViewOptions.env = this.view.env;
		this.boundViewOptions.isBoundView = true;

		this.refreshBoundViews();
	}
function()
	{
		this.anchor = this.view.env.document.createTextNode('');
		var el = this.view.element;

		if(el.parentNode)
		{
			el.parentNode.insertBefore(this.anchor, el.nextSibling);
			el.parentNode.removeChild(el);
		}

		this.boundViews = [];

		// Boundview options:
		this.boundViewName = this.view.element.getAttribute(settings.DATA_VIEW_ATTR);
		var opt = this.view.element.getAttribute(settings.DATA_OPTIONS_ATTR);

		this.boundViewOptions = opt ? JSON.parse(opt) : {};
		this.boundViewOptions.parentView = this.view;
		this.boundViewOptions.env = this.view.env;
		this.boundViewOptions.isBoundView = true;

		this.refreshBoundViews();
	}
function ( ) { this . anchor = this . view . env . document . createTextNode ( '' ) ; var el = this . view . element ; if ( el . parentNode ) { el . parentNode . insertBefore ( this . anchor , el . nextSibling ) ; el . parentNode . removeChild ( el ) ; } this . boundViews = [ ] ; // Boundview options: this . boundViewName = this . view . element . getAttribute ( settings . DATA_VIEW_ATTR ) ; var opt = this . view . element . getAttribute ( settings . DATA_OPTIONS_ATTR ) ; this . boundViewOptions = opt ? JSON . parse ( opt ) : { } ; this . boundViewOptions . parentView = this . view ; this . boundViewOptions . env = this . view . env ; this . boundViewOptions . isBoundView = true ; this . refreshBoundViews ( ) ; }
Renders "bound" views.
This method generates DOM elements corresponding to each item in the bound collection and
creates the bindingView for each element. If the collection changes, it reflects those changes
automatically in real time.

@private
Renders bound views . This method generates DOM elements corresponding to each item in the bound collection and creates the bindingView for each element . If the collection changes it reflects those changes automatically in real time .