]> source.dussan.org Git - jquery.git/commitdiff
DRY out #6514 333/head
authorRick Waldron <waldron.rick@gmail.com>
Sun, 17 Apr 2011 22:29:49 +0000 (15:29 -0700)
committerRick Waldron <waldron.rick@gmail.com>
Sun, 17 Apr 2011 22:29:49 +0000 (15:29 -0700)
src/event.js

index 7ee4a3000fe7e2c2ad9707c6cd5ddbb8d6275228..f4de35c4780605025cb80aa999a65b25c27db034 100644 (file)
@@ -1066,7 +1066,7 @@ jQuery.each(["live", "die"], function( i, name ) {
 
                        preType = type;
 
-                       if ( type === "focus" || type === "blur" || type === "mouseenter" || type === "mouseleave" ) {
+                       if ( liveMap[ type ] ) {
                                types.push( liveMap[ type ] + namespaces );
                                type = type + namespaces;