From: Aleksander Ɓukasz Date: Thu, 21 Nov 2013 12:26:49 +0000 (+0100) Subject: linting X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/f7b9f2577c412532fb29bad0cc9de27351d7daaf linting --- 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