Replace knownEvents modules with static strings.

This commit is contained in:
Nedyalko Nikolov
2015-04-23 15:47:56 +03:00
parent 8023390692
commit 95ca8d9c8c
101 changed files with 520 additions and 471 deletions

View File

@@ -18,13 +18,13 @@ export function createPage() {
var startButton = new buttonModule.Button();
startButton.text = "Start timer";
var intervalId;
startButton.addEventListener(buttonModule.knownEvents.tap, function () {
startButton.addEventListener(buttonModule.Button.tapEvent, function () {
intervalId = timer.setInterval(intervalCallback, 100);
});
var stopButton = new buttonModule.Button();
stopButton.text = "Stop timer";
stopButton.addEventListener(buttonModule.knownEvents.tap, function () {
stopButton.addEventListener(buttonModule.Button.tapEvent, function () {
timer.clearInterval(intervalId);
});