You see this convention in jQuery - it's a way of wrapping the internals, keeping it enclosed.
We define window using 'this' so that we can keep the window name local to jQuery and still guarantee that we're getting the global object.
We have undefined because it's an easy way to get an undefined variable that we can re-use.
Ez tetszik
We define window using 'this' so that we can keep the window name local to jQuery and still guarantee that we're getting the global object.
We have undefined because it's an easy way to get an undefined variable that we can re-use.