Modify ↓
Ticket #6269 (closed bug: duplicate)
Plain Object Event Unbind throws exception when unbinding last handler for given event.
| Reported by: | khoipham | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | event | Version: | 1.4.2 |
| Keywords: | event unbind | Cc: | |
| Blocking: | Blocked by: |
Description
When unbinding an event attached to a plain object, an exception is thrown when trying to remove generic event handler when if no more handlers exist.
Line 1772 calls >>
removeEvent( elem, type, elemData.handle );
removeEvent expects a DOM element, but plain object is passed instead.
Attachments
Change History
Changed 3 years ago by khoipham
-
attachment
qunit2.html
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.

QUnit test