this.dom.onShow = function() {
_.values(layout.views).forEach(function(view) {
- if(view.onShow)
+ if(view.onShow) {
view.onShow();
+ }
});
};
this.dom.onHide = function() {
_.values(layout.views).forEach(function(view) {
- if(view.onHide)
+ if(view.onHide) {
view.onHide();
+ }
});
};
define(['libs/jquery', 'libs/underscore'], function($, _) {
+'use strict';
+
var Runner = function(app, modules) {
function getModuleInstance(moduleName) {
};
this.publish = function(eventName) {
- console.log(moduleName + ': ' + eventName);
var eventArgs = Array.prototype.slice.call(arguments, 1);
_.each(eventListeners, function(listenerModuleName) {
var listener = moduleInstances[listenerModuleName];
define(['libs/jquery', './layout'], function($, layout) {
- var VBox = function() {};
-
- VBox.prototype = new layout.Layout('<div class="fnpjs-vbox"></div>');
- VBox.prototype.appendView = function(view) {
- var item = $('<div>').addClass('fnpjs-vbox-item').append(view);
- this.dom.append(item);
- };
-
- return {VBox: VBox};
+'use strict';
+
+var VBox = function() {};
+
+VBox.prototype = new layout.Layout('<div class="fnpjs-vbox"></div>');
+VBox.prototype.appendView = function(view) {
+ var item = $('<div>').addClass('fnpjs-vbox-item').append(view);
+ this.dom.append(item);
+};
+
+return {VBox: VBox};
});
\ No newline at end of file