Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Commit 5a66c89

Browse files
committed
cleaning up the example, removing dev-test relevant code and markup
1 parent 0bfcae9 commit 5a66c89

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

example/example.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ var App = {
1616
template: '#test',
1717
data: function () {
1818
return {
19-
event: '',
20-
show: true,
19+
event: ''
2120
}
2221
},
2322
methods: {
24-
toggle: function() {this.show = !this.show},
2523
test: function (e) {
2624
this.event = e.type
2725
}

example/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
</div>
1818
<template id="test">
1919
<div>
20-
<button @click="toggle">Toggle Test-Div</button>
21-
<pre>{{$data}}</pre>
2220
<div id="test-div"
23-
v-if="show"
2421
v-touch:tap="test"
2522
v-touch:pan="test"
2623

@@ -35,6 +32,7 @@
3532
<!-- v-touch-options:pan="{ direction: 'up', threshold: 100 }" -->
3633
<!-- v-touch-options:swipe="{ direction: 'horizontal' }" -->
3734
</div>
35+
<pre>{{$data}}</pre>
3836
</div>
3937

4038
</template>

0 commit comments

Comments
 (0)