diff options
author | jeresig <jeresig@gmail.com> | 2010-01-07 11:04:21 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-07 11:04:21 -0500 |
commit | d36b29fa8e24820e0d1feb6a4ab46c440f54155a (patch) | |
tree | 77586d566ee1a5eedfeefa6e60253581dbb1a31e | |
parent | 12e8f07e343b49042bd9a2035411c74b51ed7550 (diff) | |
download | jquery-d36b29fa8e24820e0d1feb6a4ab46c440f54155a.tar.gz jquery-d36b29fa8e24820e0d1feb6a4ab46c440f54155a.zip |
Make sure the state is passed in to the toggleClass attribute function.
-rw-r--r-- | src/attributes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index 1dd70842c..3ae05421b 100644 --- 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 ); }); } |