Originally Posted by felgall
is defined also.
often some jerk/library decides to use "$", and then adds jQuery to the site. using window.jQuery ensures that you don't mis-apply the unexpected $ var as though it were jQuery.
i like to use self
instead of window
to hit globals so that the code can run in WebWorker threads if needed and it's less to type.