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