Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
watson13j
Courses Plus Student 9,130 PointsWhy aren't the jQuery mouse event handlers (mouseup, mousedown, etc.) in camelCase?
Why aren't the jQuery mouse event handlers (mouseup, mousedown, etc.) called with camelCase? Shouldn't they be mouseUp, mouseDown, and so on?
That seems to run against convention and could be a major source of annoyance.
dxt
16,505 Pointsdxt
16,505 PointsHaha, I thought the same thing to when I came across those event handlers. It's hard to break from such a habit and wonder why my code isn't working due to something so trivial. I don't have the answer of why. I'm just relating to your pain.
I'd guess it might have something to do with the DOM than jQuery itself since the mouse events are more of a browser event. I could be wrong.