]> source.dussan.org Git - jquery.git/commitdiff
Make sure the state is passed in to the toggleClass attribute function.
authorjeresig <jeresig@gmail.com>
Thu, 7 Jan 2010 16:04:21 +0000 (11:04 -0500)
committerjeresig <jeresig@gmail.com>
Thu, 7 Jan 2010 16:04:21 +0000 (11:04 -0500)
src/attributes.js

index 1dd70842c74ab7d375c31ab81a59e03b875c1206..3ae05421bcb08dd9dc2e64c514071ba0554d9a6e 100644 (file)
@@ -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 );
                        });
                }