Side navigation
#5498 closed enhancement (worksforme)
Opened November 12, 2009 02:21PM UTC
Closed November 12, 2009 02:47PM UTC
do not use global undefined
Reported by: | dbjdbj | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | undefined | Cc: | |
Blocked by: | Blocking: |
Description
Please add code to shield jQuery from jokers who change the global undefined.
<code>
undefined = ";o)" ;
var a ;
a === undefined; /* false */
</code>
This is easy to combat :
undefined = ";o)" ; global joker
var jQuery = function( selector, context ) {
var undefined ; the local version
// the rest of jQuery here
} ;
Ooops ... This is already done in intro.js ... of course. Just ignore me.
/*!
*
*
*/
(function(window, undefined){