I used to be checking for the presence of globally available JS libraries by checking the content of the window
object. Now I am thrown back by the fact that if I check for say jQuery and have an element like this: <div id="jQuery">
on the page, it will be available under window.jQuery
.
How is this a good thing?
Example: http://jsfiddle.net/7xVeJ/2/
Am on Chrome 16.0.912.75 on Linux