mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Replace knownEvents modules with static strings.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user