Skip to main content

Bug Tracker

Side navigation

#9126 closed bug (fixed)

Opened May 05, 2011 03:55PM UTC

Closed May 06, 2011 06:57PM UTC

Last modified June 21, 2011 06:46PM UTC

jquery breaks on use strict

Reported by: Owned by:
Priority: low Milestone: 1.6.1
Component: data Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

in strict it throws an error on line 1948 "name is not defined"

And it here is the code:

name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase();

And yes, name is introduced without 'var'

Attachments (0)
Change History (5)

Changed May 06, 2011 06:57PM UTC by timmywil comment:1

component: unfileddata
milestone: 1.next1.6.1
priority: undecidedlow
resolution: → fixed
status: newclosed

Changed May 11, 2011 06:58PM UTC by timmywil comment:2

#9241 is a duplicate of this ticket.

Changed June 21, 2011 06:39PM UTC by comment:3

There are other places in the 1.6.1 code where a global "name" variable is changed still; the window's name is still being overwritten. For example, on line 1607, you have the line:

name = attr[i].name;

And on 1610:

name = jQuery.camelCase( name.substring(5) );

I suggest this is reopened.

Changed June 21, 2011 06:42PM UTC by anonymous comment:4

Never mind... saw the declaration on line 1605.

Changed June 21, 2011 06:46PM UTC by timmywil comment:5

The commit that fixed the issue in this ticket was and is present in 1.6.1.