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
.bind('turnOff', function(e) { $(this).removeClass('off').addClass('on'); });
This should be
.bind('turnOff', function(e) { $(this).removeClass('on').addClass('off'); });
The text was updated successfully, but these errors were encountered:
I've just reviewed both files in https://github.com/jquery/web-learn-jquery-com/tree/master/content/custom-events and the correct order of class removal (on => off) for turnOff appears to be in there at the moment. Closing.
.bind('turnOff', function(e) {
$(this).removeClass('off').addClass('on');
});
This should be
.bind('turnOff', function(e) {
$(this).removeClass('on').addClass('off');
});
The text was updated successfully, but these errors were encountered: