From 663e9bd3f676f544e48b0f6319223a7cc68dd9c4 Mon Sep 17 00:00:00 2001 From: Mauricio Soares Date: Wed, 11 Feb 2015 16:07:39 -0200 Subject: [PATCH] check if module is passed, and calls startAll --- src/core/core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/core.js b/src/core/core.js index 31a4c02..f73af9d 100644 --- a/src/core/core.js +++ b/src/core/core.js @@ -57,6 +57,11 @@ Core.prototype.getElement = function(id) { * @param {string} module the name of the module */ Core.prototype.start = function(module) { + if(!module) { + this.startAll(); + return; + } + var cModule = this.modules[module], el = this.getElement(module);