fixed typo in each loop animation error (#5648)

pull/5660/head
Mikail Khan 4 years ago committed by GitHub
parent 80300f9702
commit 9745b61aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ export default class Animation extends Node {
// TODO can we relax the 'immediate child' rule?
component.error(this, {
code: 'invalid-animation',
message: 'An element that use the animate directive must be the immediate child of a keyed each block'
message: 'An element that uses the animate directive must be the immediate child of a keyed each block'
});
}

@ -61,7 +61,7 @@ export default class EachBlock extends AbstractBlock {
const child = this.children.find(child => !!(child as Element).animation);
component.error((child as Element).animation, {
code: 'invalid-animation',
message: 'An element that use the animate directive must be the sole child of a keyed each block'
message: 'An element that uses the animate directive must be the sole child of a keyed each block'
});
}
}

@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the immediate child of a keyed each block",
"message": "An element that uses the animate directive must be the immediate child of a keyed each block",
"start": {
"line": 5,
"column": 5,
@ -12,4 +12,4 @@
"character": 55
},
"pos": 44
}]
}]

@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the immediate child of a keyed each block",
"message": "An element that uses the animate directive must be the immediate child of a keyed each block",
"start": {
"line": 6,
"column": 6,
@ -12,4 +12,4 @@
"character": 80
},
"pos": 69
}]
}]

@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the sole child of a keyed each block",
"message": "An element that uses the animate directive must be the sole child of a keyed each block",
"start": {
"line": 6,
"column": 6,
@ -12,4 +12,4 @@
"character": 88
},
"pos": 77
}]
}]

Loading…
Cancel
Save