Bug Tracker

Modify

Ticket #6269 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

qunit2.html Download (1.9 KB) - added by khoipham 3 years ago.
QUnit test

Change History

Changed 3 years ago by khoipham

QUnit test

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate
  • Component changed from unfiled to event

Duplicate of #6184.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.