From d36b29fa8e24820e0d1feb6a4ab46c440f54155a Mon Sep 17 00:00:00 2001 From: jeresig Date: Thu, 7 Jan 2010 11:04:21 -0500 Subject: [PATCH 1/1] Make sure the state is passed in to the toggleClass attribute function. --- src/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes.js b/src/attributes.js index 1dd7084..3ae0542 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 ); }); } -- 1.7.10.4