jamiebicknell/Toggle-Switch — pull request #1 by steve228uk (2012-11-18 18:00:27+00:00)
Title: Fix scope issues and switch to prop

I moved the declaration of the variables to stop JSLint screaming about an out of scope error.

Switched to 'prop' instead of 'attr', had some issues with pre-checked checkboxes with your original code and this seems to have fixed it.