$tog.prop('checked') seems to always return false for me unless I explicitly set $tog.prop('checked', true) and $tog.prop('checked', false) 

a783cfc
4dd2fd9