1
0
Fork 0
fgdata/webgui/topics/Simulator/Exit.js
2015-02-04 21:05:55 +01:00

21 lines
458 B
JavaScript

define([
'jquery', 'knockout', 'text!./Exit.html', 'fgcommand', 'kojqui/button'
], function(jquery, ko, htmlString, fgcommand ) {
function ViewModel(params) {
var self = this;
self.doExit = function() {
fgcommand.exit();
}
}
ViewModel.prototype.dispose = function() {
}
// Return component definition
return {
viewModel : ViewModel,
template : htmlString
};
});