Commit 21e15219 authored by jeresig's avatar jeresig

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

parent d36b29fa
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment