-define([\r
-'libs/jquery-1.9.1.min',\r
-'libs/underscore-min',\r
-'libs/text!./template.html'], function($, _, template) {\r
-\r
-'use strict';\r
-\r
-return function(sandbox) {\r
-\r
- var view = $(_.template(template)());\r
- view.find('button').click(function(e) {\r
- e.preventDefault();\r
- sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));\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
+define([
+'libs/jquery-1.9.1.min',
+'libs/underscore-min',
+'libs/text!./template.html'], function($, _, template) {
+
+'use strict';
+
+return function(sandbox) {
+
+ var view = $(_.template(template)());
+ view.find('button').click(function(e) {
+ e.preventDefault();
+ sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
+ });
+
+ return {
+ start: function() { sandbox.publish('ready'); },
+ getView: function() {return view;},
+ setCommandEnabled: function(cmd, enabled) {
+ view.find('[data-cmd='+cmd+']').toggleClass('disabled', !enabled);
+ },
+ setVersion: function(version) {
+ view.find('.version').text(version);
+ }
+ };
+
+};
+
});
\ No newline at end of file