From: jeresig Date: Thu, 7 Jan 2010 16:04:21 +0000 (-0500) Subject: Make sure the state is passed in to the toggleClass attribute function. X-Git-Tag: 1.4rc1~16^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d36b29fa8e24820e0d1feb6a4ab46c440f54155a;p=jquery.git Make sure the state is passed in to the toggleClass attribute function. --- 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 ); }); }