File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
test/unit/specs/directives Expand file tree Collapse file tree 4 files changed +7
-7
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 @@ -179,7 +179,7 @@ if (process.env.NODE_ENV !== 'production') {
179
179
KEY_FILTER : function ( ) {
180
180
warn (
181
181
'The "key" filter will be deprecated in 1.0.0. Use the new ' +
182
- 'on-keyup: key="handler" syntax instead.'
182
+ 'on-keyup- key="handler" syntax instead.'
183
183
)
184
184
} ,
185
185
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module.exports = {
9
9
bind : function ( ) {
10
10
// 1.0.0 key filter
11
11
var rawArg = this . arg
12
- var keyIndex = rawArg . indexOf ( ': ' )
12
+ var keyIndex = rawArg . indexOf ( '- ' )
13
13
if ( keyIndex > - 1 ) {
14
14
this . arg = rawArg . slice ( 0 , keyIndex )
15
15
this . key = rawArg . slice ( keyIndex + 1 )
Original file line number Diff line number Diff line change @@ -71,10 +71,10 @@ if (_.inBrowser) {
71
71
} )
72
72
} )
73
73
74
- it ( 'with new syntax key filter' , function ( done ) {
74
+ it ( 'with key filter (new syntax) ' , function ( done ) {
75
75
new Vue ( {
76
76
el : el ,
77
- template : '<a on-keyup: enter="test">{{a}}</a>' ,
77
+ template : '<a on-keyup- enter="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