Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Jan 7, 2010
1 parent 12e8f07 commit d36b29fa8e24820e0d1feb6a4ab46c440f54155a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );
});
}

0 comments on commit d36b29f

Please sign in to comment.
You can’t perform that action at this time.