Skip to content
Permalink
Browse files

Removed .removeAttr(Function), it didn't really make sense.

  • Loading branch information
jeresig committed Jan 7, 2010
1 parent d36b29f commit 21e15219be8e04b3fe25d05a65abfaef96830b9f
Showing with 1 addition and 8 deletions.
  1. +1 −8 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 ) {

0 comments on commit 21e1521

Please sign in to comment.
You can’t perform that action at this time.