view src/DML/MainVisBundle/Resources/assets/marionette/modules/ContextModule/ContextModule.02-ConfigCollection.js @ 1:f38015048f48 tip

Added GPL
author Daniel Wolff
date Sat, 13 Feb 2016 20:43:38 +0100
parents 493bcb69166c
children
line wrap: on
line source
"use strict";

App.module("ContextModule", function(ContextModule, App, Backbone, Marionette, $, _, Logger) {

    // Define private variables
    var logger = null;

    ContextModule.addInitializer(function(options){
        
        //logger = Logger.get("ContextModule");
        //logger.setLevel(Logger.DEBUG);
        
        /**
         * ConfigCollection is needed to store parameters of entities and views
         */
        ContextModule.ConfigCollection = Backbone.Collection.extend({
            model: ContextModule.Config,
            
            initialize: function(configs, options) {
                this.configGridType = options.configGridType;
                this.dimension = options.dimension;
            }
        });
    });
}, Logger);