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.

http://www.w3schools.com/tags/ref_eventattributes.asp


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -