|
ClockEvent
The events dispatched by an epiclock.
Phase-Support IntroductionClock events are dispatch only. They are provided to allow you to monitor the progress of clocks, and not to interact with them. Triggering a "pause" event for instance, will not pause a clock. Binding to a pause event will simply notify you when a clock has been paused. If you wish to interact with and change the state of the clock, simply use the Clock Object to modify the clock. Subscribeable EventsThe following events are dispatched by the epiclock plugin. These events are read-only, and will merely notify you when the event occurs.
Example Usage function pauseListener()
{
this; // A reference to the clock object.
alert('Clock Paused');
}
var clock = jQuery('#clock').epiclock({ ... }).bind('pause', pauseListener).data('epiclock');
clock.pause(); // Will cause the alert to fire.See the Clock Guide for more info. | ||||||||||||