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

		var animation = this._animations_by_template_guid[template.guid];

		if (!animation && template.isInDOM()) {

			animation = this._createAnimation(template);

		}

		if (animation) {

			animation.reverseDirection();
			animation.safeStart();

		}

	}
function(template) {

		var animation = this._animations_by_template_guid[template.guid];

		if (!animation && template.isInDOM()) {

			animation = this._createAnimation(template);

		}

		if (animation) {

			animation.reverseDirection();
			animation.safeStart();

		}

	}
function ( template ) { var animation = this . _animations_by_template_guid [ template . guid ] ; if ( ! animation && template . isInDOM ( ) ) { animation = this . _createAnimation ( template ) ; } if ( animation ) { animation . reverseDirection ( ) ; animation . safeStart ( ) ; } }
Apply template removal animation and remove element from DOM in the end of it
@param {Lava.system.Template} template
Apply template removal animation and remove element from DOM in the end of it