X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fattributes.js;h=004c6b30ca0bd1dfa4f02cc6cc05502acd904742;hb=4fa00369f00b8ee708c8962135b7aa345e3d30d0;hp=3ae05421bcb08dd9dc2e64c514071ba0554d9a6e;hpb=d36b29fa8e24820e0d1feb6a4ab46c440f54155a;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index 3ae0542..004c6b3 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -12,14 +12,7 @@ jQuery.fn.extend({ return access( this, name, value, true, jQuery.attr ); }, - removeAttr: function( name ) { - if ( jQuery.isFunction( name ) ) { - return this.each(function(i) { - var self = jQuery(this); - self.removeAttr( name.call(this, i, self.attr(name)) ); - }); - } - + removeAttr: function( name, fn ) { return this.each(function(){ jQuery.attr( this, name, "" ); if ( this.nodeType === 1 ) {