Make sure that live focus and blur events also bind to the regular events, to handle...
[jquery.git] / src / event.js
index 17d7673..d59533f 100644 (file)
@@ -769,6 +769,10 @@ if ( !jQuery.support.changeBubbles ) {
                },
 
                setup: function( data, namespaces ) {
+                       if ( this.type === "file" ) {
+                               return false;
+                       }
+
                        for ( var type in changeFilters ) {
                                jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
                        }
@@ -952,7 +956,14 @@ jQuery.each(["live", "die"], function( i, name ) {
                        }
 
                        preType = type;
-                       type = (liveMap[ type ] || type) + namespaces;
+
+                       if ( type === "focus" || type === "blur" ) {
+                               types.push( liveMap[ type ] + namespaces );
+                               type = type + namespaces;
+
+                       } else {
+                               type = (liveMap[ type ] || type) + namespaces;
+                       }
 
                        if ( name === "live" ) {
                                // bind live handler