lib/assets/javascripts/tao/form/shared/fields/radio.coffee in tao_form-0.1.9 vs lib/assets/javascripts/tao/form/shared/fields/radio.coffee in tao_form-0.1.10
- old
+ new
@@ -7,13 +7,17 @@
_connected: ->
@field = @jq.find('input:radio')
@_bind()
_bind: ->
+ @on 'change', 'input[type=radio]', (e) =>
+ @namespacedTrigger 'change'
+ null
+
@on 'click', '.radio-wrapper', (e) =>
if @field.is(':enabled')
@_toggleChecked()
- @trigger 'tao:change'
+ @namespacedTrigger 'change'
false
_disconnected: ->
@off()