123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_ParallelAnimations(_hS91, _h931){C_ParallelAnimations.baseConstructor.call(this, _h931, NaN);this._hH91=_hS91||[];var _hBZ1=this._hH91.length;for(var i=0;i<_hBZ1;i++){this._hH91[i].F_SetOnComplete(this._hTB.bind(this));}};C_ParallelAnimations.F_Extends(C_TickableAnimation);C_ParallelAnimations.prototype.F_Push=function(_hFG1){_hFG1.F_SetOnComplete(this._hTB.bind(this));this._hH91.push(_hFG1);};C_ParallelAnimations.prototype.F_OnBeforePlay=function(){C_ParallelAnimations.superClass.F_OnBeforePlay.call(this);this._hG5=this._hH91.length;};C_ParallelAnimations.prototype.F_Play=function(_hV62){if(_hV62){setTimeout(this.F_Play.bind(this), _hV62);return;}C_ParallelAnimations.superClass.F_Play.call(this);};C_ParallelAnimations.prototype.F_Cancel=function(){this._hH91.F_CallEach("F_Cancel");C_ParallelAnimations.superClass.F_Cancel.call(this);};C_ParallelAnimations.prototype.F_Stop=function(){this._hH91.F_CallEach("F_Stop");};C_ParallelAnimations.prototype.F_OnTick=function(){var _hBZ1=this._hH91.length;if(_hBZ1==0){C_ParallelAnimations.superClass.F_Stop.call(this);return;}for(var i=0;i<_hBZ1;i++){var _hFG1=this._hH91[i];if(_hFG1){_hFG1.F_Tick();if(_hFG1.F_IsComplete()){this._hH91[i]=null;}}}};C_ParallelAnimations.prototype._hTB=function(){if(--this._hG5==0){C_ParallelAnimations.superClass.F_Stop.call(this);}};
|