Sha256: 3b58054dd14bddf87a603b777093c14d33ce03be0fa7dccae423b9176eb1c0bd
Contents?: true
Size: 597 Bytes
Versions: 17
Compression:
Stored size: 597 Bytes
Contents
initialize = (target) -> $(target || document).find('input.effective_email:not(.initialized)').each (i, element) -> element = $(element) options = element.data('input-js-options') || {} # We don't actually do anything with options element.addClass('initialized') $ -> initialize() $(document).on 'page:change', -> initialize() $(document).on 'turbolinks:load', -> initialize() $(document).on 'turbolinks:render', -> initialize() $(document).on 'cocoon:after-insert', -> initialize() $(document).on 'effective-form-inputs:initialize', (event) -> initialize(event.currentTarget)
Version data entries
17 entries across 17 versions & 1 rubygems