search for: attacheventhandl

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

Did you mean: attacheventhandler
2006 Feb 28
3
EventPublisher (contribution)
...tup the event handlers... if (balls) $A(balls).each(function(b) { this.addBall(b); }.bind(this)); }, addBall: function(ball) { this.balls.push(ball); // set up the event handler for this ball (synchronously, so no 3rd parameter)... ball.attachEventHandler( "onBounce", this.ballBounce.bind(this) ); // ...or set it up so it executes asynchronously (pass in "true" as the 3rd parameter) // obviously a real floor can handle many balls bouncing at the same time, so this is probably the way to go ball.attachE...