Skip to content

Commit

Permalink
check if module is passed, and calls startAll
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciosoares committed Feb 11, 2015
1 parent f12e4ce commit 663e9bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 663e9bd

Please sign in to comment.