jonobr1 / Physics

A requirified port of Traer Physics from Processing to JavaScript.
http://jonobr1.github.com/Physics
Other
195 stars 21 forks source link

2 Bugfixes #2

Closed skratchdot closed 11 years ago

skratchdot commented 11 years ago

Fixing an error reported by Firebug as well as a bug that I experienced when checking out your documentation: I was click the play/pause button and the text was changing, but no animation was triggered. I thought the library was broken, but then realized clicking on the canvas fixed things.

Feel free to ignore this pull request. I'm storing the physics object on the canvas to get access to it in the "toggle text" code. Not sure of the memory impact of this.

Tested in the latest versions of Firefox and Chrome.

skratchdot commented 11 years ago

You can check out the differences by clicking on one of the play/pause buttons on these 2 pages:

http://skratchdot.github.com/Physics/

vs

http://jonobr1.github.com/Physics/

jonobr1 commented 11 years ago

Cool, thanks doing this! I didn't realize jQuery's on method worked like that. You learn something new everyday :+1: I'll merge this in.