Alex cueto Alex cueto - 2 months ago 9
Javascript Question

Bootstrap Javascript dont Work in Firefox and Safari IOS

I'm working on an app which you can see here: http://coster.herokuapp.com/

When I use Firefox or Safari for iPhone, it does not work correctly. I'm using Google Polymer 1.0, Bootstrap 3, Skeleton and of course jQuery.

This is the error I receive in Firefox

Answer

Yeah, I've fixed it, but not quite...

I fixed with this code:

<script>
    jQuery.ajax({
        url: '/lib/bootstrap/dist/js/bootstrap.js',
        success: function (data) {
            (new Function('document', 'window', data))
                .call({}, wrap(document), wrap(window));
        },
        dataType: 'text'
    });
</script>

in this isue at Github: https://github.com/Polymer/polymer/issues/625

Comments