diff options
author | jeresig <jeresig@gmail.com> | 2010-01-07 11:14:56 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-07 11:14:56 -0500 |
commit | 21e15219be8e04b3fe25d05a65abfaef96830b9f (patch) | |
tree | ebe40496744e4e6ff214ed8121af98fbc6aa5466 /src/attributes.js | |
parent | d36b29fa8e24820e0d1feb6a4ab46c440f54155a (diff) | |
download | jquery-21e15219be8e04b3fe25d05a65abfaef96830b9f.tar.gz jquery-21e15219be8e04b3fe25d05a65abfaef96830b9f.zip |
Removed .removeAttr(Function), it didn't really make sense.
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 9 |
1 files changed, 1 insertions, 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 ) { |