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

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

		if (animation.isReversed()) {

			this._onRemovalComplete(animation, template);
			this._fire('removal_complete', template);

		} else {

			this._onInsertionComplete(animation, template);
			this._fire('insertion_complete', template);

		}

		delete this._templates_by_animation_guid[animation.guid];
		delete this._animations_by_template_guid[template.guid];

	}
function(animation) {

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

		if (animation.isReversed()) {

			this._onRemovalComplete(animation, template);
			this._fire('removal_complete', template);

		} else {

			this._onInsertionComplete(animation, template);
			this._fire('insertion_complete', template);

		}

		delete this._templates_by_animation_guid[animation.guid];
		delete this._animations_by_template_guid[template.guid];

	}
function ( animation ) { var template = this . _templates_by_animation_guid [ animation . guid ] ; if ( animation . isReversed ( ) ) { this . _onRemovalComplete ( animation , template ) ; this . _fire ( 'removal_complete' , template ) ; } else { this . _onInsertionComplete ( animation , template ) ; this . _fire ( 'insertion_complete' , template ) ; } delete this . _templates_by_animation_guid [ animation . guid ] ; delete this . _animations_by_template_guid [ template . guid ] ; }
Cleanup animation instance and update state of it's template
@param {Lava.animation.Abstract} animation
Cleanup animation instance and update state of it s template