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

		// save, cause we can not retrieve container's DOM elements after broadcastRemove
		var start_element = this._getStartElement(template),
			end_element = this._getEndElement(template);

		// first, we must inform the template, that it's going to be removed: to allow it's child views to interact
		// with nodes while they are still in DOM
		template.broadcastRemove();

		if (start_element == end_element) {

			Firestorm.Element.destroy(start_element);

		} else {

			// remove everything between tags and tags themselves
			Firestorm.DOM.clearOuterRange(start_element, end_element);

		}

		Firestorm.Array.exclude(this._current_templates, template);

	}
function(template) {

		// save, cause we can not retrieve container's DOM elements after broadcastRemove
		var start_element = this._getStartElement(template),
			end_element = this._getEndElement(template);

		// first, we must inform the template, that it's going to be removed: to allow it's child views to interact
		// with nodes while they are still in DOM
		template.broadcastRemove();

		if (start_element == end_element) {

			Firestorm.Element.destroy(start_element);

		} else {

			// remove everything between tags and tags themselves
			Firestorm.DOM.clearOuterRange(start_element, end_element);

		}

		Firestorm.Array.exclude(this._current_templates, template);

	}
function ( template ) { // save, cause we can not retrieve container's DOM elements after broadcastRemove var start_element = this . _getStartElement ( template ) , end_element = this . _getEndElement ( template ) ; // first, we must inform the template, that it's going to be removed: to allow it's child views to interact // with nodes while they are still in DOM template . broadcastRemove ( ) ; if ( start_element == end_element ) { Firestorm . Element . destroy ( start_element ) ; } else { // remove everything between tags and tags themselves Firestorm . DOM . clearOuterRange ( start_element , end_element ) ; } Firestorm . Array . exclude ( this . _current_templates , template ) ; }
Remove template from DOM
@param {Lava.system.Template} template
Remove template from DOM