mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Reverted some test files.
This commit is contained in:
@@ -1,22 +1,5 @@
|
||||
import frame = require("ui/frame");
|
||||
import pageModule = require("ui/page");
|
||||
import textViewModule = require("ui/text-view");
|
||||
|
||||
export function buttonTap(args) {
|
||||
console.log("tap");
|
||||
}
|
||||
|
||||
export function doubleTap(args) {
|
||||
console.log("doubleTap");
|
||||
}
|
||||
|
||||
export function checkRecognizers(args) {
|
||||
var testTextView = <textViewModule.TextView>(page.getViewById("testTextView"));
|
||||
console.log("testTextView: " + testTextView.ios.gestureRecognizers);
|
||||
}
|
||||
|
||||
var page: pageModule.Page;
|
||||
|
||||
export function pageLoaded(args) {
|
||||
page = <pageModule.Page>args.object;
|
||||
frame.topmost().goBack();
|
||||
}
|
||||
@@ -1,6 +1,3 @@
|
||||
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||
<StackLayout>
|
||||
<TextView text="TEST FOR GESTURES" id="testTextView" style="font-size: 50" tap="buttonTap" doubleTap="doubleTap"/>
|
||||
<Button text="CLICK" tap="checkRecognizers" />
|
||||
</StackLayout>
|
||||
<Page xmlns="http://www.nativescript.org/tns.xsd">
|
||||
<Button text="Back" tap="buttonTap"/>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user