search for: bouncingball

Displaying 1 result from an estimated 1 matches for "bouncingball".

2006 Feb 28
3
EventPublisher (contribution)
...cific event, and pass any arguments to those handlers that you want. The file is attached (sans the ".js" extension to get past my company''s firewall, just re-add that once you have the file, replacing the ".txt"). USAGE: Let''s say you have an object called BouncingBall, and you''d like to fire notification events every time the ball bounces. To enable this, just extend BouncingBall to inherit from EventPublisher, and then use the fireEvent method... Object.extend(Object.extend(BouncingBall.prototype, EventPublisher.prototype), { initialize: function...