When creating a function and immediately calling it afterward, is there a difference in these two implementations?
(function ($) {
....some code....
}(jQuery))
or
(function ($) {
....some code....
})(jQuery)
Which is the correct method to use?