jQuery: The Write Less, Do More JavaScript Library

Ticket #2105 (closed bug: fixed)

Opened 4 months ago

Last modified 4 months ago

[PATCH] 1.2.2b2 curCSS() throws an error in IE

Reported by: ieure Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.2 Component: fx
Version: 1.2.1 Keywords: ie, internet explorer
Cc: Needs: Review

Description

If you try to .show() an object which doesn’t have a .style member, IE 6 dies with this error:

'style' is null or not an object

The problem seems to be curCSS() accessing elem.style[name] without checking to see if elem.style exists. Attached patch corrects the problem for me.

Attachments

curcss.patch (402 bytes) - added by ieure 4 months ago.
Patch which corrects the issue.

Change History

Changed 4 months ago by ieure

Patch which corrects the issue.

Changed 4 months ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [4444].

Note: See TracTickets for help on using tickets.