• Resolved werbewelten

    (@werbewelten)


    Hello,
    on this page the slider and the visual composer are not loaded.
    This error is shown to me in the console:

    composer-view.js?ver=4.5.3:146 Uncaught TypeError: $template.get is not a function
        at n.html2element (composer-view.js?ver=4.5.3:146)
        at n.render (composer-view.js?ver=4.5.3:157)
        at n.appendShortcode (composer-view.js?ver=4.5.3:531)
        at n.<anonymous> (composer-view.js?ver=4.5.3:476)
        at underscore.min.js?ver=1.8.3:2
        at Function.v.each.v.forEach (underscore.min.js?ver=1.8.3:2)
        at n.addChild (composer-view.js?ver=4.5.3:475)
        at n.addAll (composer-view.js?ver=4.5.3:469)
        at p (backbone.min.js?ver=1.4.0:2)
        at f (backbone.min.js?ver=1.4.0:2)

    Can anyone help me further?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter werbewelten

    (@werbewelten)

    I think i solved the problem:
    I changed the html2element code in the composer-view.js to:

    html2element: function(html) {
    var $template, attributes = {},
    template = html;
    $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) {
    attributes[attr.name] = attr.value
    }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent()
    },

Viewing 1 replies (of 1 total)
  • The topic ‘$template.get is not a function’ is closed to new replies.