[jQuery] $(function) shortcut and event.js dependency
The new $(func) shortcut for $(document).ready(func) means that jquery.js is
dependent on event.js so be sure to include event.js! It seems obvious if
I'm calling .ready() explicitly, but it tripped me up since it was hidden. I
tend to use .bind() explicitly for other events to save the event.js
include, and was absent-mindedly thinking of $(func) as an onload instead of
onready. I think things are fine as-is, as long as it's documented.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/