Modify ↓
Ticket #1309 (closed bug: fixed)
className.has(undefined) and className.add(undefined) should fail gracefully
| Reported by: | keithorama | Owned by: | brandon |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1.4 |
| Component: | core | Version: | 1.1.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
Change History
Changed 6 years ago by keithorama
-
attachment
jquery.diff
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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