I've already encapsulated my javascript in
jQuery(document).ready(function($) {
});
I was wondering what the implications were of calling functions inside of it via these two ways:
jQuery(document).ready(function($) {
$(function () {
// do something
});
});
vs
jQuery(document).ready(function($) {
(function () {
// do something
})();
});
edit:
I also wanted to know which of the two would be the more "correct" manner of doing things? Feel free to add your own implementation.