jQuery: The Write Less, Do More JavaScript Library

Ticket #1309 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

className.has(undefined) and className.add(undefined) should fail gracefully

Reported by: keithorama Assigned to: brandon
Type: bug Priority: minor
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

Description

it looks like className.remove() handles the case where the parameter is undefined. The has() and add() methods blow up. Would be nice if they didn't

Attachments

jquery.diff (1.2 kB) - added by keithorama 1 year ago.
patch to check for non-string input on className.*

Change History

Changed 1 year ago by keithorama

patch to check for non-string input on className.*

Changed 1 year ago by brandon

  • owner set to brandon

Changed 1 year ago by brandon

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

Fixed in Rev [2436].

Changed 1 year ago by brandon

  • version changed from 1.1.2 to 1.1.3
  • milestone changed from 1.1.3 to 1.1.4
Note: See TracTickets for help on using tickets.