From f7b9f2577c412532fb29bad0cc9de27351d7daaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 21 Nov 2013 13:26:49 +0100 Subject: [PATCH] linting --- src/fnpjs/layout.js | 6 ++++-- src/fnpjs/runner.js | 3 ++- src/fnpjs/vbox.js | 20 +++++++++++--------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/fnpjs/layout.js b/src/fnpjs/layout.js index c1d110e..68d4738 100644 --- a/src/fnpjs/layout.js +++ b/src/fnpjs/layout.js @@ -8,14 +8,16 @@ define(['libs/jquery', 'libs/underscore'], function($ ,_) { 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(); + } }); }; diff --git a/src/fnpjs/runner.js b/src/fnpjs/runner.js index 66e0b68..0da2916 100644 --- a/src/fnpjs/runner.js +++ b/src/fnpjs/runner.js @@ -1,5 +1,7 @@ define(['libs/jquery', 'libs/underscore'], function($, _) { +'use strict'; + var Runner = function(app, modules) { function getModuleInstance(moduleName) { @@ -33,7 +35,6 @@ var Runner = function(app, modules) { }; this.publish = function(eventName) { - console.log(moduleName + ': ' + eventName); var eventArgs = Array.prototype.slice.call(arguments, 1); _.each(eventListeners, function(listenerModuleName) { var listener = moduleInstances[listenerModuleName]; diff --git a/src/fnpjs/vbox.js b/src/fnpjs/vbox.js index dfb5a9f..f4ebb8f 100644 --- a/src/fnpjs/vbox.js +++ b/src/fnpjs/vbox.js @@ -1,13 +1,15 @@ define(['libs/jquery', './layout'], function($, layout) { - var VBox = function() {}; - - VBox.prototype = new layout.Layout('
'); - VBox.prototype.appendView = function(view) { - var item = $('
').addClass('fnpjs-vbox-item').append(view); - this.dom.append(item); - }; - - return {VBox: VBox}; +'use strict'; + +var VBox = function() {}; + +VBox.prototype = new layout.Layout('
'); +VBox.prototype.appendView = function(view) { + var item = $('
').addClass('fnpjs-vbox-item').append(view); + this.dom.append(item); +}; + +return {VBox: VBox}; }); \ No newline at end of file -- 2.20.1