git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36b29f
)
Removed .removeAttr(Function), it didn't really make sense.
author
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 16:14:56 +0000
(11:14 -0500)
committer
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 16:14:56 +0000
(11:14 -0500)
src/attributes.js
patch
|
blob
|
history
diff --git
a/src/attributes.js
b/src/attributes.js
index
3ae0542
..
004c6b3
100644
(file)
--- a/
src/attributes.js
+++ b/
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 ) {