Skip to main content

Bug Tracker

Side navigation

#5024 closed bug (invalid)

Opened August 07, 2009 01:44PM UTC

Closed December 16, 2009 03:44AM UTC

fix for 1.2.6: name undefined in attr()

Reported by: sgbeal Owned by:
Priority: minor Milestone:
Component: core Version: 1.2.6
Keywords: attr Cc:
Blocked by: Blocking:
Description

Hi!

In attr(), from 1.2.6:

attr: function( name, value, type ) {

var options = name;

// Look for the case where we're accessing a style value

if ( name.constructor == String )

...

i have some code which will run just fine on 1.2 except that "name is undefined" (see above: name.constructor) in some cases and that's breaking my app. i found that by changing attr() slightly to:

attr: function( name, value, type ) {

... if ( name && (name.constructor == String) )

i could get my code to work in both 1.2.6(+patch) and 1.3.

:)

Attachments (0)
Change History (1)

Changed December 16, 2009 03:44AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Please reopen with a test case that shows when the problem occurs.