Skip to content

Conversation

petersendidit
Copy link
Member

... Fixed #9015 - Inclusion of jQuery UI breaks removeClass

@@ -852,7 +852,7 @@ $.fn.extend({
return speed ?
$.effects.animateClass.call( this,
{ remove: classNames }, speed, easing, callback ) :
this._removeClass( classNames );
classNames ? this._removeClass( classNames ) : this._removeClass();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about this for the entire body... not as clear?:

    return arguments.length > 1 ?
        $.effects.animateClass.call( this,
            { remove: classNames }, speed, easing, callback ) :
        this._removeClass.apply( this, arguments );

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am good either way. Will one uglify and gzip better?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably wont make much difference.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with my approach. One less conditional, and more future proof.

….0. Fixed #9015 - Inclusion of jQuery UI breaks removeClass
@petersendidit petersendidit merged commit 2ca4d17 into jquery:master Jan 29, 2013
@petersendidit petersendidit deleted the removeClass_9015 branch January 29, 2013 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants