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