mirror of
https://github.com/jquery/jquery.git
synced 2026-02-09 18:25:10 -05:00
Make sure that special remove and teardown events get called when .die() is used. Additionally made sure that default actions are triggered when namespaced events are used. Fixes #6202 and #6250.
This commit is contained in:
@@ -561,7 +561,7 @@ jQuery.extend({
|
||||
if ( id ) {
|
||||
data = cache[ id ];
|
||||
|
||||
if ( data.events ) {
|
||||
if ( data && data.events ) {
|
||||
for ( var type in data.events ) {
|
||||
if ( special[ type ] ) {
|
||||
jQuery.event.remove( elem, type );
|
||||
|
||||
Reference in New Issue
Block a user