]> source.dussan.org Git - jquery.git/commitdiff
Removed .removeAttr(Function), it didn't really make sense.
authorjeresig <jeresig@gmail.com>
Thu, 7 Jan 2010 16:14:56 +0000 (11:14 -0500)
committerjeresig <jeresig@gmail.com>
Thu, 7 Jan 2010 16:14:56 +0000 (11:14 -0500)
src/attributes.js

index 3ae05421bcb08dd9dc2e64c514071ba0554d9a6e..004c6b30ca0bd1dfa4f02cc6cc05502acd904742 100644 (file)
@@ -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 ) {