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

@@ -25,7 +25,7 @@ export function createPage() {
var startButtonClickHandler = function () {
allocateMemory();
};
startButton.on(buttonModule.knownEvents.tap, startButtonClickHandler);
startButton.on(buttonModule.Button.tapEvent, startButtonClickHandler);
var stopButton = new buttonModule.Button();
stopButton.height = 50;
@@ -34,7 +34,7 @@ export function createPage() {
var stopButtonClickHandler = function () {
nativeCallsWrapper.forceGarbageCollection();
};
stopButton.on(buttonModule.knownEvents.tap, stopButtonClickHandler);
stopButton.on(buttonModule.Button.tapEvent, stopButtonClickHandler);
mainStackLayout.addChild(startButton);
mainStackLayout.addChild(stopButton);