Skip to content

Commit

Permalink
added ability to add enabled flag to module definition
Browse files Browse the repository at this point in the history
  • Loading branch information
scottburch committed Apr 5, 2012
1 parent e098091 commit 5b6b053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ModuleManager.js
Expand Up @@ -52,6 +52,7 @@ define(function () {
require([moduleDef.name + 'Module'], function (mediator) {
mediator.name = moduleDef.name;
mediator.modulePath = modulePath;
mediator.enable(moduleDef.enabled !== false);
modules.push(mediator);
mediator.beforeEach && initBeforeEach(mediator)
cb();
Expand Down

0 comments on commit 5b6b053

Please sign in to comment.