diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/DML/MainVisBundle/Resources/assets/marionette/modules/ContextModule/ContextModule.02-ConfigCollection.js	Tue Feb 09 20:54:02 2016 +0100
@@ -0,0 +1,25 @@
+"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);