Bug Tracker

Opened 8 years ago

Closed 8 years ago

#5498 closed enhancement (worksforme)

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

} ;

Change History (2)

comment:1 Changed 8 years ago by dbjdbj

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

/*!

(function(window, undefined){

comment:2 Changed 8 years ago by dmethvin

Resolution: worksforme
Status: newclosed

Yep, already done.

Note: See TracTickets for help on using tickets.