Quote:
Originally Posted by felgall
When using JQuery $ should be the only global JavaScript variable in the page.
|
nope,
jQuery is defined also.
@sunfighter:
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.
quick aside:
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.