Skip to main content

Bug Tracker

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

} ;

Attachments (0)
Change History (2)

Changed November 12, 2009 02:24PM UTC by dbjdbj comment:1

Ooops ... This is already done in intro.js ... of course. Just ignore me.

/*!

*

*

  • Date:

*/

(function(window, undefined){

Changed November 12, 2009 02:47PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

Yep, already done.