linting
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 21 Nov 2013 12:26:49 +0000 (13:26 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Dec 2013 13:50:53 +0000 (14:50 +0100)
src/fnpjs/layout.js
src/fnpjs/runner.js
src/fnpjs/vbox.js

index c1d110e..68d4738 100644 (file)
@@ -8,14 +8,16 @@ define(['libs/jquery', 'libs/underscore'], function($ ,_) {
         
         this.dom.onShow = function() {
             _.values(layout.views).forEach(function(view) {
         
         this.dom.onShow = function() {
             _.values(layout.views).forEach(function(view) {
-                if(view.onShow)
+                if(view.onShow) {
                     view.onShow();
                     view.onShow();
+                }
             });
         };
         this.dom.onHide = function() {
             _.values(layout.views).forEach(function(view) {
             });
         };
         this.dom.onHide = function() {
             _.values(layout.views).forEach(function(view) {
-                if(view.onHide)
+                if(view.onHide) {
                     view.onHide();
                     view.onHide();
+                }
             });
         };
         
             });
         };
         
index 66e0b68..0da2916 100644 (file)
@@ -1,5 +1,7 @@
 define(['libs/jquery', 'libs/underscore'], function($, _) {
 
 define(['libs/jquery', 'libs/underscore'], function($, _) {
 
+'use strict';
+
 var Runner = function(app, modules) {
 
     function getModuleInstance(moduleName) {
 var Runner = function(app, modules) {
 
     function getModuleInstance(moduleName) {
@@ -33,7 +35,6 @@ var Runner = function(app, modules) {
         };
         
         this.publish = function(eventName) {
         };
         
         this.publish = function(eventName) {
-            console.log(moduleName + ': ' + eventName);
             var eventArgs = Array.prototype.slice.call(arguments, 1);
             _.each(eventListeners, function(listenerModuleName) {
                 var listener = moduleInstances[listenerModuleName];
             var eventArgs = Array.prototype.slice.call(arguments, 1);
             _.each(eventListeners, function(listenerModuleName) {
                 var listener = moduleInstances[listenerModuleName];
index dfb5a9f..f4ebb8f 100644 (file)
@@ -1,13 +1,15 @@
 define(['libs/jquery', './layout'], function($, layout) {
     
 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
     
 });
\ No newline at end of file