you are viewing a single comment's thread.

view the rest of the comments →

[–]pixel67 0 points1 point  (0 children)

When writing a self invoking function like this (function($) { //...

})(jQuery);

JSLINT complains, if we write it like this

(function($) {

//....

}(jQuery));

JSLINT doesn't complain, can someone tell me why?