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

@@ -27,7 +27,7 @@ export function createPage() {
var button = new buttonModule.Button();
button.text = text;
button.width = 40;
button.on(buttonModule.knownEvents.tap, function (eventData) {
button.on(buttonModule.Button.tapEvent, function (eventData) {
count = ((<any>eventData.object).text) * 1000;
countLabel.text = "Create " + count + " objects of type:";
});
@@ -79,7 +79,7 @@ export function createPage() {
var addControlButtonFunc = function (text) {
var button = new buttonModule.Button();
button.text = text;
button.on(buttonModule.knownEvents.tap, onClickHandler);
button.on(buttonModule.Button.tapEvent, onClickHandler);
mainLayout.addChild(button);
};