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_Animation(_h931){this._hA31=_h931;this._hR6=this._h41();};C_Animation._hBR=100;C_Animation._hLI=25;C_Animation._hCR=10;C_Animation.prototype._h41=function(){return C_Animation._hCR;};C_Animation.prototype._h2X=function(){if(!this._hMI){this._hMI=true;G_AnimationDirector.F_Add(this);}};C_Animation.prototype.F_OnBeforePlay=function(){this._h2X();this._hQA=true;};C_Animation.prototype.F_Play=function(){if(!this._hQA){this.F_OnBeforePlay();}};C_Animation.prototype.F_Stop=function(){this._hRA();};C_Animation.prototype.F_Cancel=function(){this._hEG1=true;this._hA31=null;G_AnimationDirector.F_Remove(this);};C_Animation.prototype.F_IsCancelled=function(){return Boolean(this._hEG1);};C_Animation.prototype.F_SetOnComplete=function(_h931){this._hA31=_h931;};C_Animation.prototype._hRA=function(){if(!this._hEG1&&this._hA31){setTimeout(this._hDR.bind(this), 0);}};C_Animation.prototype._hDR=function(){if(!this._hEG1&&this._hA31){this._hA31();G_AnimationDirector.F_Remove(this);}};var G_AnimationDirector={};G_AnimationDirector._hH91=[];G_AnimationDirector._hNI=[];G_AnimationDirector.F_Add=function(_hFG1){this._hH91.push(_hFG1);};G_AnimationDirector.F_Remove=function(_hFG1){this._hH91.F_RemoveItem(_hFG1);if(this._hH91.length==0){for(var fn=this._hNI.pop();fn;fn=this._hNI.pop()){fn();}}};G_AnimationDirector.F_Busy=function(){return this._hH91.length>0;};G_AnimationDirector.F_CallWhenIdle=function(fn){if(this.F_Busy()){this._hNI.push(fn);return;}fn();};
|