I need to teardown select2 & date picker widgets to avoid memory leaks in internet explorer.

Yes, this can be accomplished by listening to button clicks, but would nice to have a symmetric initialization & teardown API for widgets.

On Sun, Nov 3, 2013 at 5:36 PM, Sean Linsley <notifications@github.com>
wrote:

>> @@ -0,0 +1,18 @@
>> +$ ->
>> +  $(document).on 'click', 'a.button.has_many_remove', (e)->
>> +    e.preventDefault()
>> +    $(@).closest('.has_many_fields').remove()
> I can't think of a situation where that would actually be needed. Wouldn't simply hooking on the button itself be good enough?
> ```coffee
> $ ->
>   $(document).on 'click', 'a.button.has_many_remove', ->
>     alert 'foo'
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/gregbell/active_admin/pull/2645/files#r7392407