Skip to content

Make widget factory remove classes in destroy #1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from

Conversation

arschmitz
Copy link
Member

This alters the proposed api of _addClass and _removeClass to make them auto remove all classes in destroy
it also add a garbage collection method for the object which tracks classes elements

this changes the api to:
this._addClass( elements, "classes" );

It removes the need to differentiate the "extra" classes and tracks all classes and removes all classes in destroy automatically

@arschmitz arschmitz changed the title Add class Make widget factory remove classes in destroy Dec 3, 2014
.toggleClass( "ui-state-disabled", value )
.attr( "aria-disabled", value );
this.button.attr( "aria-disabled", value );
this[ ( value ? "_add" : "_remove" ) + "Class" ]( "ui-state-disabled", value );
Copy link
Member

Choose a reason for hiding this comment

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

Why not add a this._toggleClass method? You're doing this a lot over the files.

@arschmitz
Copy link
Member Author

replaced by #1411

@arschmitz arschmitz closed this Jan 2, 2015
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.

2 participants