From 21e15219be8e04b3fe25d05a65abfaef96830b9f Mon Sep 17 00:00:00 2001 From: jeresig Date: Thu, 7 Jan 2010 11:14:56 -0500 Subject: [PATCH] Removed .removeAttr(Function), it didn't really make sense. --- src/attributes.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/attributes.js b/src/attributes.js index 3ae05421b..004c6b30c 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 ) { -- 2.39.5