mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Replace knownEvents modules with static strings.
This commit is contained in:
@ -36,7 +36,7 @@ export function createPage() {
|
||||
mainStackLayout.addChild(childStackLayout);
|
||||
for (var j = 0; j < buttonsPerRow; j++) {
|
||||
button = new buttonModule.Button();
|
||||
button.on(buttonModule.knownEvents.tap, function (data) {
|
||||
button.on(buttonModule.Button.tapEvent, function (data) {
|
||||
trace.write("eventName=" + data.eventName + " object=" + data.object, trace.categories.Test, trace.messageType.info);
|
||||
});
|
||||
button.text = "" + i + j;
|
||||
|
Reference in New Issue
Block a user