\r
_.each(_.keys(modules || {}), function(moduleName) {\r
if(_.contains(app.permissions[moduleName] || [], 'handleEvents')) {\r
- eventListeners.push(moduleName)\r
+ eventListeners.push(moduleName);\r
}\r
});\r
\r
\r
this.getBootstrappedData = function() {\r
return bootstrappedData[moduleName];\r
- }\r
+ };\r
\r
this.getTemplate = function(templateName) {\r
return _.template($('[data-template-name="' + moduleName + '.' + templateName + '"]').html().trim());\r
- }\r
+ };\r
\r
this.publish = function(eventName) {\r
console.log(moduleName + ': ' + eventName);\r
- var eventArgs = Array.prototype.slice.call(arguments, 1)\r
+ var eventArgs = Array.prototype.slice.call(arguments, 1);\r
_.each(eventListeners, function(listenerModuleName) {\r
var listener = moduleInstances[listenerModuleName];\r
if(listener) {\r
listener.handleEvent(moduleName, eventName, eventArgs);\r
}\r
});\r
- }\r
+ };\r
\r
var permissions = app.permissions[moduleName];\r
\r
app.initModules.forEach(function(moduleName) {\r
getModuleInstance(moduleName).start();\r
});\r
- }\r
-}\r
+ };\r
+};\r
\r
return {\r
Runner: Runner\r
-}\r
+};\r
\r
});
\ No newline at end of file
this.nodes = {\r
tabBar: this.$('.rng-view-tabs-tabBar'),\r
content: this.$('.rng-view-tabs-content')\r
- }\r
+ };\r
\r
if(this.options.stacked) {\r
this.nodes.tabBar.addClass('nav-stacked nav-pills').removeClass('nav-tabs');\r
\r
return {\r
View: View\r
- }\r
+ };\r
\r
\r
});
\ No newline at end of file