Merge branch 'master' of git@github.com:jquery/jquery

This commit is contained in:
John Resig 2009-12-11 12:53:17 -08:00
commit 5b51cc92fc

View 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 );
}
},