Make sure the state is passed in to the toggleClass attribute function.
This commit is contained in:
parent
12e8f07e34
commit
d36b29fa8e
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue