File tree 5 files changed +8
-8
lines changed
src/compiler/compile/nodes
animation-not-in-keyed-each
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default class Animation extends Node {
27
27
// TODO can we relax the 'immediate child' rule?
28
28
component . error ( this , {
29
29
code : 'invalid-animation' ,
30
- message : 'An element that use the animate directive must be the immediate child of a keyed each block'
30
+ message : 'An element that uses the animate directive must be the immediate child of a keyed each block'
31
31
} ) ;
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export default class EachBlock extends AbstractBlock {
61
61
const child = this . children . find ( child => ! ! ( child as Element ) . animation ) ;
62
62
component . error ( ( child as Element ) . animation , {
63
63
code : 'invalid-animation' ,
64
- message : 'An element that use the animate directive must be the sole child of a keyed each block'
64
+ message : 'An element that uses the animate directive must be the sole child of a keyed each block'
65
65
} ) ;
66
66
}
67
67
}
Original file line number Diff line number Diff line change 1
1
[{
2
2
"code" : " invalid-animation" ,
3
- "message" : " An element that use the animate directive must be the immediate child of a keyed each block" ,
3
+ "message" : " An element that uses the animate directive must be the immediate child of a keyed each block" ,
4
4
"start" : {
5
5
"line" : 5 ,
6
6
"column" : 5 ,
12
12
"character" : 55
13
13
},
14
14
"pos" : 44
15
- }]
15
+ }]
Original file line number Diff line number Diff line change 1
1
[{
2
2
"code" : " invalid-animation" ,
3
- "message" : " An element that use the animate directive must be the immediate child of a keyed each block" ,
3
+ "message" : " An element that uses the animate directive must be the immediate child of a keyed each block" ,
4
4
"start" : {
5
5
"line" : 6 ,
6
6
"column" : 6 ,
12
12
"character" : 80
13
13
},
14
14
"pos" : 69
15
- }]
15
+ }]
Original file line number Diff line number Diff line change 1
1
[{
2
2
"code" : " invalid-animation" ,
3
- "message" : " An element that use the animate directive must be the sole child of a keyed each block" ,
3
+ "message" : " An element that uses the animate directive must be the sole child of a keyed each block" ,
4
4
"start" : {
5
5
"line" : 6 ,
6
6
"column" : 6 ,
12
12
"character" : 88
13
13
},
14
14
"pos" : 77
15
- }]
15
+ }]
You can’t perform that action at this time.
0 commit comments