Possible duplicate:
why do we have to go through a window and undefined into this jquery plugin?
I saw jQuery source code:
(function(window, undefined){ ... }(window))
I understand why it is useful to include undefined if someone where you need to change "undefined" before. But the window cannot be resized. As far as I know, it does not even need to be used, right? How can this be helpful?
javascript jquery
Enrique Moreno Tent
source share