mardi 12 décembre 2017

Ember-idx-accordion throwing console error

using this for an app for a friend's business, this is within an hbs template.


    
        Item
    
    
        Item 2
    
     
        Item 3
    


Their docs are here: http://ift.tt/2BYusBZ

Through the inspector I see this error

consoleError

This is the file the Object.initialize hits.

define('carolin-rn-r/initializers/idx-accordion-config', ['exports' 'ember-idx-utils/config'], function (exports, _config) {
'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
var Em = Ember;
exports.default = {
    name: 'ember-idx-accordion',
    initialize: function initialize() {
        var Config = Em.IdxConfig = Em.IdxConfig ? Em.IdxConfig : _config.default.create();

        var defaultConfig = Config.getConfig('default');
        if (!defaultConfig) {
            Config.addConfig('default');
            defaultConfig = Config.getConfig('default');
        }

        //Bootstrap
        var bsConfig = Config.getConfig('bs');
        if (!bsConfig) {
            Config.addConfig('bs');
            bsConfig = Config.getConfig('bs');
        }
        bsConfig['accordion'] = {
            classes: ['panel-group'],
            itemClasses: ['panel', 'panel-default'],
            itemSelectedClasses: ['active'],
            panelHeaderClasses: ['panel-heading'],
            panelTitleClasses: ['panel-title'],
            panelTogglerClasses: ['accordion-toggle'],
            panelBodyContainerClasses: ['panel-collapse', 'collapse'],
            panelBodyClasses: ['panel-body']
        };
    }
};
});




Aucun commentaire:

Enregistrer un commentaire