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:
12e8f07
)
Make sure the state is passed in to the toggleClass attribute function.
author
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 16:04:21 +0000
(11:04 -0500)
committer
jeresig
<jeresig@gmail.com>
Thu, 7 Jan 2010 16:04:21 +0000
(11:04 -0500)
src/attributes.js
patch
|
blob
|
history
diff --git
a/src/attributes.js
b/src/attributes.js
index
1dd7084
..
3ae0542
100644
(file)
--- a/
src/attributes.js
+++ b/
src/attributes.js
@@
-99,7
+99,7
@@
jQuery.fn.extend({
if ( jQuery.isFunction( value ) ) {
return this.each(function(i) {
var self = jQuery(this);
- self.toggleClass( value.call(this, i, self.attr("class")), stateVal );
+ self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
});
}