Mercurial > hg > dml-open-vis
view src/DML/MainVisBundle/Resources/assets/marionette/modules/ContextModule/ContextModule.00.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) { // Prevent auto start ContextModule.startWithParent = false; // Define options var defaultModuleOptions = { stateHistoryMaxLength: 20 }; // Define private variables var logger = null; // Initialization checker var assertModuleIsInitialized = function() { if (!logger) { throw "ContextModule has not been initialized"; } }; /** * Module initializer * */ ContextModule.addInitializer(function(options){ ContextModule.moduleOptions = _.extend(defaultModuleOptions, options); logger = Logger.get("ContextModule"); //logger.setLevel(Logger.DEBUG); }); }, Logger);