Skip to content
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

Check switchery element state before changing it #104

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

jokaio
Copy link
Contributor

@jokaio jokaio commented May 30, 2016

If an element is enabled and you call element.enable(),
the enable function checks the element status and if the action (enable)
and state (enabled) are the same it stops before doing anything or changing the element.
Otherwise enabling an already enabled element,
would break the functionality for this switchery element.
Same for disabling an element.

Resolves #103

If an element is enabled and you call element.enable(),
the enable function checks the element status and if the action (enable)
and state (enabled) are the same it stops before doing anything or changing the element.
Otherwise enabling an already enabled element,
would break the functionality for this switchery element.
Same for disabling an element.
@abpetkov abpetkov merged commit e813d13 into abpetkov:master Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants