Reverted some test files.

This commit is contained in:
Nedyalko Nikolov
2015-05-29 13:48:45 +03:00
parent f838f11844
commit 542b948e8b
2 changed files with 3 additions and 23 deletions

View File

@@ -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();
}

View File

@@ -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>