How can I get Webshim and Turbolinks to play nice together?

204 Views Asked by At

The webshims for my form work fine on initial page load, but don't after I navigate to another page.

I have tried calling updatePolyfill in handlers and it doesn't fix the issue.

$.webshim.setOptions ...
$.webshim.polyfill('forms')

// none of these fixes the issue
$(document).on "page:load", ->
    $(this).updatePolyfill()
    $('body').updatePolyfill()
    $('form').updatePolyfill()
    $.webshim.polyfill('forms')

$(document).ready ->
    // same deal (using jquery.turbolinks)

How can I load the shims after navigating away from the initial page?

0

There are 0 best solutions below