Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3847 closed bug (fixed)

RemoveClass with null parameter throws error

Reported by: thomasvsundert Owned by: john
Priority: major Milestone: 1.3.1
Component: core Version: 1.3
Keywords: Cc:
Blocked by: Blocking:

Description

Calling removeClass(null) on an element throws an error. Instead it should just do nothing.

Attachments (1)

3847.diff (451 bytes) - added by dz 11 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by john

Component: unfilledcore
Milestone: 1.31.3.1
need: ReviewTest Case
Owner: set to john
Version: 1.3

Changed 11 years ago by dz

Attachment: 3847.diff added

comment:2 Changed 11 years ago by dz

There's a page demonstrating this at:

http://media.nodnod.net/jquery/3847.html

And I attached a diff of a possible fix

comment:3 Changed 11 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [6142].

Note: See TracTickets for help on using tickets.