special event refactor left over code
This commit is contained in:
parent
c6db93c373
commit
96fd5f18d4
|
@ -160,7 +160,7 @@ jQuery.event = {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ( !ret ) {
|
if ( !ret ) {
|
||||||
if ( !this.special[ type ] || this.special[ type ].teardown.call( elem, namespaces ) === false ) {
|
if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
|
||||||
if ( elem.removeEventListener ) {
|
if ( elem.removeEventListener ) {
|
||||||
elem.removeEventListener( type, jQuery.data( elem, "handle" ), false );
|
elem.removeEventListener( type, jQuery.data( elem, "handle" ), false );
|
||||||
} else if ( elem.detachEvent ) {
|
} else if ( elem.detachEvent ) {
|
||||||
|
|
Loading…
Reference in a new issue