Mojo.Animation.Queue

Class Detail

Allows for running multiple animations using a shared timer, since the overhead of running multiple timers is pretty high. Mojo instantiates animation queues automatically, and applications are generally expected to work with the animation queue for the appropriate window, obtained via the Mojo.Animation.queueForElement() function.

Method Summary
Method Name and Description
Mojo.Animation.Queue.add(animation)
Mojo.Animation.Queue.remove(animation)
Method Detail
Mojo.Animation.Queue.add(animation)

Adds an 'animation' object to the queue. These objects must have an 'animate' method, which will be called repeatedly to run the animation.

Parameters:
{Object} animation
Mojo.Animation.Queue.remove(animation)

Removes the given animation object from the list, so its 'animate' method will no longer be called.

Parameters:
{Object} animation

Documentation generated by JsDoc Toolkit 2.1.1 on Thu Oct 29 2009 15:28:12 GMT-0700 (PDT)