Sha256: ca586b8c36481222ac8a0967e9e6d6322ac0c14dfda681f809527416acf8be9e

Contents?: true

Size: 287 Bytes

Versions: 3

Compression:

Stored size: 287 Bytes

Contents

(function(){

  function embed() {
    if ( !document.body ) return requestAnimationFrame( embed )
    <%= @embed %>
  }
  <% if @config[:xhr_event] %>
  // Handle Turbolinks page change events
  document.addEventListener("<%= @config[:xhr_event] %>", embed)
  <% end %>

  embed()
})()

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
esvg-4.6.11 lib/esvg/js/embed.js.erb
esvg-4.6.10 lib/esvg/js/embed.js.erb
esvg-4.6.9 lib/esvg/js/embed.js.erb