Skip to content

Commit

Permalink
Merge branch 'master' into gh-908
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 22, 2017
2 parents 8c467bc + 60b883b commit ffb0f23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/validate/html/validateWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const validBindings = [
'outerHeight',
'scrollX',
'scrollY',
'online'
];

export default function validateWindow(validator: Validator, node: Node, refs: Map<string, Node[]>, refCallees: Node[]) {
Expand Down
2 changes: 1 addition & 1 deletion test/validator/samples/window-binding-invalid/errors.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions test/validator/samples/window-binding-online/errors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions test/validator/samples/window-binding-online/input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<:Window bind:online/>

0 comments on commit ffb0f23

Please sign in to comment.