File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
test/unit/specs/directives/internal Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h1>todos</h1>
14
14
autofocus autocomplete ="off "
15
15
placeholder ="What needs to be done? "
16
16
v-model ="newTodo "
17
- on-keyup: enter ="addTodo ">
17
+ on-keyup- enter ="addTodo ">
18
18
</ header >
19
19
< section class ="main " v-show ="todos.length " v-cloak >
20
20
< input class ="toggle-all " type ="checkbox " v-model ="allDone ">
@@ -31,8 +31,8 @@ <h1>todos</h1>
31
31
v-model ="todo.title "
32
32
v-todo-focus ="todo == editedTodo "
33
33
on-blur ="doneEdit(todo) "
34
- on-keyup: enter ="doneEdit(todo) "
35
- on-keyup: esc ="cancelEdit(todo) ">
34
+ on-keyup- enter ="doneEdit(todo) "
35
+ on-keyup- esc ="cancelEdit(todo) ">
36
36
</ li >
37
37
</ ul >
38
38
</ section >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ module.exports = {
41
41
bind : function ( ) {
42
42
// 1.0.0 key filter
43
43
var rawEvent = this . event = this . descriptor . arg
44
- var keyIndex = rawEvent . indexOf ( ': ' )
44
+ var keyIndex = rawEvent . indexOf ( '- ' )
45
45
if ( keyIndex > - 1 ) {
46
46
this . event = rawEvent . slice ( 0 , keyIndex )
47
47
this . key = rawEvent . slice ( keyIndex + 1 )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if (_.inBrowser) {
53
53
it ( 'with key filter' , function ( done ) {
54
54
new Vue ( {
55
55
el : el ,
56
- template : '<a on-keyup: enter="test">{{a}}</a>' ,
56
+ template : '<a on-keyup- enter="test">{{a}}</a>' ,
57
57
data : { a : 1 } ,
58
58
methods : {
59
59
test : function ( ) {
@@ -74,7 +74,7 @@ if (_.inBrowser) {
74
74
it ( 'with key filter (keycode)' , function ( done ) {
75
75
new Vue ( {
76
76
el : el ,
77
- template : '<a on-keyup: 13="test">{{a}}</a>' ,
77
+ template : '<a on-keyup- 13="test">{{a}}</a>' ,
78
78
data : { a : 1 } ,
79
79
methods : {
80
80
test : function ( ) {
You can’t perform that action at this time.
0 commit comments