]> source.dussan.org Git - jquery.git/commitdiff
Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.
authorJohn Resig <jeresig@gmail.com>
Fri, 11 Dec 2009 19:46:38 +0000 (11:46 -0800)
committerJohn Resig <jeresig@gmail.com>
Fri, 11 Dec 2009 19:46:38 +0000 (11:46 -0800)
src/attributes.js
src/event.js

index 9c868ee0359dd1e155415cbc11b606da3bb75e2e..0a60b0d74bb41e88def55c26e25209e13dace58b 100644 (file)
@@ -163,8 +163,8 @@ jQuery.fn.extend({
 
 jQuery.each({
        removeAttr: function( name ) {
-               jQuery.attr( this, name, "" );
-               if (this.nodeType == 1) {
+               if ( this.nodeType === 1 ) {
+                       this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null;
                        this.removeAttribute( name );
                }
        },
index 26f414e233c7666778f8aeee8363a53f0cbd82d3..018d4d9809929e27bf36224f0721c08251412414 100644 (file)
@@ -680,7 +680,7 @@ function trigger( type, elem, args ) {
 if ( !jQuery.support.focusBubbles ) {
 
 jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ){
-       event.special[ orig ] = {
+       jQuery.event.special[ orig ] = {
                setup: function() {
                        jQuery.event.add( this, fix, ieHandler );
                },