Some code improvements suggested by linter
[fnpeditor.git] / modules / mainBar / mainBar.js
index 75fd599..6966e4a 100644 (file)
@@ -11,15 +11,18 @@ return function(sandbox) {
     view.find('button').click(function(e) {\r
         e.preventDefault();\r
         sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));\r
-    })\r
+    });\r
 \r
     return {\r
         start: function() { sandbox.publish('ready'); },\r
         getView: function() {return view;},\r
         setCommandEnabled: function(cmd, enabled) {\r
             view.find('[data-cmd='+cmd+']').toggleClass('disabled', !enabled);\r
+        },\r
+        setVersion: function(version) {\r
+            view.find('.version').text(version);\r
         }\r
-    }\r
+    };\r
 \r
 };\r
 \r