We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
toggle
Add toggle method for easy enable/disable. This makes it easy to set based based on a variable.
var somebool; autoLauncher[(somebool ? 'enable' : 'disable')](function(err) { console.log(err); }); // or (somebool ? autoLauncher.enable : autoLauncher.disable).bind(autoLauncher)(function(err){ console.log(err); });
var somebool; autoLauncher.toggle(somebool, function(err) { console.log(err); });
The text was updated successfully, but these errors were encountered:
This isn't a priority for us but we'll happily accept a pr for this change. Thanks for the suggestion!
Sorry, something went wrong.
Oxalin
No branches or pull requests
Add
toggle
method for easy enable/disable. This makes it easy to set based based on a variable.Current:
Desired:
The text was updated successfully, but these errors were encountered: