Closed skratchdot closed 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
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.
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.