special event refactor left over code

This commit is contained in:
Brandon Aaron 2009-05-01 00:36:21 +00:00
parent c6db93c373
commit 96fd5f18d4

View file

@ -160,7 +160,7 @@ jQuery.event = {
break;
}
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 ) {
elem.removeEventListener( type, jQuery.data( elem, "handle" ), false );
} else if ( elem.detachEvent ) {