lib/packages/core-classes.js
function(current_templates) {

		var i = 0,
			count = current_templates.length,
			guid;

		// from templates, which are prepared for removal, filter out those, which should be in DOM
		for (; i < count; i++) {

			delete this._remove_queue[current_templates[i].guid];

		}

		for (guid in this._remove_queue) {

			if (this._remove_queue[guid].isInDOM()) {

				this._remove_queue[guid].broadcastRemove();
				this._fire('removal_complete', this._remove_queue[guid]);

			}

		}

		this._current_templates = current_templates;
		this._remove_queue = {};

		return this._render();

	}
function(current_templates) {

		var i = 0,
			count = current_templates.length,
			guid;

		// from templates, which are prepared for removal, filter out those, which should be in DOM
		for (; i < count; i++) {

			delete this._remove_queue[current_templates[i].guid];

		}

		for (guid in this._remove_queue) {

			if (this._remove_queue[guid].isInDOM()) {

				this._remove_queue[guid].broadcastRemove();
				this._fire('removal_complete', this._remove_queue[guid]);

			}

		}

		this._current_templates = current_templates;
		this._remove_queue = {};

		return this._render();

	}
function ( current_templates ) { var i = 0 , count = current_templates . length , guid ; // from templates, which are prepared for removal, filter out those, which should be in DOM for ( ; i < count ; i ++ ) { delete this . _remove_queue [ current_templates [ i ] . guid ] ; } for ( guid in this . _remove_queue ) { if ( this . _remove_queue [ guid ] . isInDOM ( ) ) { this . _remove_queue [ guid ] . broadcastRemove ( ) ; this . _fire ( 'removal_complete' , this . _remove_queue [ guid ] ) ; } } this . _current_templates = current_templates ; this . _remove_queue = { } ; return this . _render ( ) ; }
View's render callback
@param {Array.<Lava.system.Template>} current_templates Templates that must be in DOM
View s render callback