API  0.9.10
CPAnimationContext.j File Reference

Go to the source code of this file.

Variables

CompletionHandlerAgent prototype completionHandler
 
var CompletionHandlerAgent
 
CompletionHandlerAgent prototype decrement
 
CompletionHandlerAgent prototype fire
 
CompletionHandlerAgent prototype increment
 
CompletionHandlerAgent prototype invalidate
 
typedef Map
 

Variable Documentation

◆ completionHandler

CompletionHandlerAgent prototype completionHandler
Initial value:
= function()
{
return this._completionHandler;
}

Definition at line 470 of file CPAnimationContext.j.

◆ CompletionHandlerAgent

var CompletionHandlerAgent
Initial value:
= function(aCompletionHandler)
{
this._completionHandler = aCompletionHandler;
this.total = 0;
this.valid = true;
}

Definition at line 463 of file CPAnimationContext.j.

◆ decrement

CompletionHandlerAgent prototype decrement
Initial value:
= function()
{
if (this.total <= 0)
return;
this.total--;
if (this.valid && this.total == 0)
{
this.fire();
}
}
CompletionHandlerAgent prototype fire

Definition at line 485 of file CPAnimationContext.j.

◆ fire

CompletionHandlerAgent prototype fire
Initial value:
= function()
{
this._completionHandler();
}

Definition at line 475 of file CPAnimationContext.j.

◆ increment

CompletionHandlerAgent prototype increment
Initial value:
= function()
{
this.total++;
}

Definition at line 480 of file CPAnimationContext.j.

◆ invalidate

CompletionHandlerAgent prototype invalidate
Initial value:
= function()
{
this.valid = false;
}

Definition at line 498 of file CPAnimationContext.j.

◆ Map

typedef Map

Definition at line 3 of file CPAnimationContext.j.