mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
parent
b5821b846a
commit
60b883b066
@ -12,6 +12,7 @@ const validBindings = [
|
||||
'outerHeight',
|
||||
'scrollX',
|
||||
'scrollY',
|
||||
'online'
|
||||
];
|
||||
|
||||
export default function validateWindow(validator: Validator, node: Node, refs: Map<string, Node[]>, refCallees: Node[]) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
[{
|
||||
"message": "'potato' is not a valid binding on <:Window> — valid bindings are innerWidth, innerHeight, outerWidth, outerHeight, scrollX or scrollY",
|
||||
"message": "'potato' is not a valid binding on <:Window> — valid bindings are innerWidth, innerHeight, outerWidth, outerHeight, scrollX, scrollY or online",
|
||||
"loc": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
|
1
test/validator/samples/window-binding-online/errors.json
Normal file
1
test/validator/samples/window-binding-online/errors.json
Normal file
@ -0,0 +1 @@
|
||||
[]
|
1
test/validator/samples/window-binding-online/input.html
Normal file
1
test/validator/samples/window-binding-online/input.html
Normal file
@ -0,0 +1 @@
|
||||
<:Window bind:online/>
|
Loading…
Reference in New Issue
Block a user