Closed riversy closed 9 years ago
The only issue here is that checkbox and radio directives now run on the parent container rather than the inputs, which causes problems with transclusion (often a input won't be found when the JS runs)
$($element[0]).find('label > input[type=checkbox]')
Instead could you look at the parent / container elements to detect toggle support?
I've translated it to CoffeeScript and slight rewritten to make toggleButton working.