]> source.dussan.org Git - jquery.git/commitdiff
Second part of the fix for #2071. An empty string "" was being sent to .bind() and...
authorDavid Serduke <davidserduke@gmail.com>
Wed, 19 Dec 2007 01:48:05 +0000 (01:48 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Wed, 19 Dec 2007 01:48:05 +0000 (01:48 +0000)
src/event.js

index 02ed088c2e5431f892935e5ed0ca8b0d07af0b4a..c0238ccab7256c39ef73cc2b84f9c57e30628d90 100644 (file)
@@ -102,7 +102,7 @@ jQuery.event = {
 
                if ( events ) {
                        // Unbind all events for the element
-                       if ( !types )
+                       if ( types == undefined )
                                for ( var type in events )
                                        this.remove( elem, type );
                        else {