1
0
Fork 0
fgdata/webgui/topics/Tools/Stopwatch.js
Torsten Dreyer 1c55371a56 Phi: some tweaks
- show at least one stopwatch
- add a refresh button (for web-apps)
- no-cache for index.html
- reorder buttons for Aircraft topic
- add aircraft thumbnail to Aircraft topic
2015-02-22 21:18:23 +01:00

23 lines
526 B
JavaScript

define([
'jquery', 'knockout', 'text!./Stopwatch.html', 'kojqui/button'
], function(jquery, ko, htmlString) {
function ViewModel(params) {
var self = this;
self.watches = ko.observableArray([]);
self.addWatch = function() {
self.watches.push(self.watches().length);
}
}
ViewModel.prototype.dispose = function() {
}
// Return component definition
return {
viewModel : ViewModel,
template : htmlString
};
});