nostalgiaz/bootstrap-switch — pull request #48 by alaasdk (2013-04-17 19:01:17+00:00)
Title: Fixed an issue with disabled checkboxes.

updated
"in if ($this.closest('.switch').is('.deactivate'))"
to be
"in if ($this.closest('.has-switch').is('.deactivate'))".
because if anyone initialized the plugin to an element that doesn't have switch class and the inner checkbox is disabled, it will be dimmed but still working because it won't find the ".switch" class in closest selector.