src/main/javascript/animation/floatz.animation.animation.js
/**
	 * Add handler when animation ends.
	 *
	 * @param handler End handler
	 * @param capture true for capture phase, false for bubbling phase
	 * @returns {Animation} Animation
	 */
Add handler when animation ends.
@param handler End handler
@param capture true for capture phase, false for bubbling phase
@returns {Animation} Animation
Add handler when animation ends . @param handler End handler @param capture true for capture phase false for bubbling phase @returns { Animation } Animation
end(handler, capture = false) {
		this._endHandler = (e) => {
			console.debug(LOG_PREFIX + "Event " + this._type + "end fired for " + this._element.tag());
			handler(e);
			this._element.removeEvent(this._type + "end", this._endHandler, capture);
			if (this._iterateHandler !== null) {
				this._element.removeEvent(this._type + "iteration", this._iterateHandler,
					this._iterateCapture);
			}
		};
		this._element.addEvent(this._type + "end", this._endHandler, capture);
		return this;
	}
end ( handler , capture = false ) { this . _endHandler = ( e ) => { console . debug ( LOG_PREFIX + "Event " + this . _type + "end fired for " + this . _element . tag ( ) ) ; handler ( e ) ; this . _element . removeEvent ( this . _type + "end" , this . _endHandler , capture ) ; if ( this . _iterateHandler !== null ) { this . _element . removeEvent ( this . _type + "iteration" , this . _iterateHandler , this . _iterateCapture ) ; } } ; this . _element . addEvent ( this . _type + "end" , this . _endHandler , capture ) ; return this ; }
Add handler when animation ends.
Add handler when animation ends .