Skip to content

Commit 21e1521

Browse files
committed
Removed .removeAttr(Function), it didn't really make sense.
1 parent d36b29f commit 21e1521

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/attributes.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ jQuery.fn.extend({
1212
return access( this, name, value, true, jQuery.attr );
1313
},
1414

15-
removeAttr: function( name ) {
16-
if ( jQuery.isFunction( name ) ) {
17-
return this.each(function(i) {
18-
var self = jQuery(this);
19-
self.removeAttr( name.call(this, i, self.attr(name)) );
20-
});
21-
}
22-
15+
removeAttr: function( name, fn ) {
2316
return this.each(function(){
2417
jQuery.attr( this, name, "" );
2518
if ( this.nodeType === 1 ) {

0 commit comments

Comments
 (0)