Commit d36b29fa authored by jeresig's avatar jeresig

Make sure the state is passed in to the toggleClass attribute function.

parent 12e8f07e
......@@ -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 );
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment