Removed .removeAttr(Function), it didn't really make sense.
This commit is contained in:
parent
d36b29fa8e
commit
21e15219be
|
@ -12,14 +12,7 @@ jQuery.fn.extend({
|
||||||
return access( this, name, value, true, jQuery.attr );
|
return access( this, name, value, true, jQuery.attr );
|
||||||
},
|
},
|
||||||
|
|
||||||
removeAttr: function( name ) {
|
removeAttr: function( name, fn ) {
|
||||||
if ( jQuery.isFunction( name ) ) {
|
|
||||||
return this.each(function(i) {
|
|
||||||
var self = jQuery(this);
|
|
||||||
self.removeAttr( name.call(this, i, self.attr(name)) );
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.each(function(){
|
return this.each(function(){
|
||||||
jQuery.attr( this, name, "" );
|
jQuery.attr( this, name, "" );
|
||||||
if ( this.nodeType === 1 ) {
|
if ( this.nodeType === 1 ) {
|
||||||
|
|
Loading…
Reference in a new issue