camelcasing - Why are some jQuery methods camelCase and others are not? -
for example, css methods seem camelcase: http://api.jquery.com/category/css/,
but mouse events lowercase: http://api.jquery.com/category/events/mouse-events/
is there logic this?
in javascript, events use lowercase identifiers (onclick, etc.). because it's artifact of inline events in html.
css methods in camelcase because javascript convention. event methods in lowercase, because that's html convention.
take @ page more details.
Comments
Post a Comment