annotate src/DML/MainVisBundle/Resources/assets/marionette/modules/ContextModule/ContextModule.02-ConfigCollection.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
rev   line source
Daniel@0 1 "use strict";
Daniel@0 2
Daniel@0 3 App.module("ContextModule", function(ContextModule, App, Backbone, Marionette, $, _, Logger) {
Daniel@0 4
Daniel@0 5 // Define private variables
Daniel@0 6 var logger = null;
Daniel@0 7
Daniel@0 8 ContextModule.addInitializer(function(options){
Daniel@0 9
Daniel@0 10 //logger = Logger.get("ContextModule");
Daniel@0 11 //logger.setLevel(Logger.DEBUG);
Daniel@0 12
Daniel@0 13 /**
Daniel@0 14 * ConfigCollection is needed to store parameters of entities and views
Daniel@0 15 */
Daniel@0 16 ContextModule.ConfigCollection = Backbone.Collection.extend({
Daniel@0 17 model: ContextModule.Config,
Daniel@0 18
Daniel@0 19 initialize: function(configs, options) {
Daniel@0 20 this.configGridType = options.configGridType;
Daniel@0 21 this.dimension = options.dimension;
Daniel@0 22 }
Daniel@0 23 });
Daniel@0 24 });
Daniel@0 25 }, Logger);