fixed typo in each loop animation error (#5648)

pull/5660/head
Mikail Khan 5 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? // TODO can we relax the 'immediate child' rule?
component.error(this, { component.error(this, {
code: 'invalid-animation', 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); const child = this.children.find(child => !!(child as Element).animation);
component.error((child as Element).animation, { component.error((child as Element).animation, {
code: 'invalid-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", "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": { "start": {
"line": 5, "line": 5,
"column": 5, "column": 5,

@ -1,6 +1,6 @@
[{ [{
"code": "invalid-animation", "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": { "start": {
"line": 6, "line": 6,
"column": 6, "column": 6,

@ -1,6 +1,6 @@
[{ [{
"code": "invalid-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",
"start": { "start": {
"line": 6, "line": 6,
"column": 6, "column": 6,

Loading…
Cancel
Save