1
0
Fork 0
fgdata/webgui/topics/Tools/Stopwatch.js
Torsten Dreyer c295450e7d Phi: Add Holding Pattern Tool
A simple tool to visualize holding pattern entries
2015-02-21 20:46:39 +01:00

23 lines
527 B
JavaScript

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