Permalink
Browse files

special event refactor left over code

  • Loading branch information...
1 parent c6db93c commit 96fd5f18d49bd3a93586c4b8b6c3cdfc337cd067 @brandonaaron brandonaaron committed May 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
View
@@ -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 ) {

0 comments on commit 96fd5f1

Please sign in to comment.