Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.
[jquery.git] / src / attributes.js
index fb5b16b..0a60b0d 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 );
                }
        },
@@ -211,7 +211,8 @@ jQuery.extend({
                data: true,
                width: true,
                height: true,
-               offset: true
+               offset: true,
+               bind: true
        },
                
        attr: function( elem, name, value ) {