bigskysoftware / bigskysoftware/_hyperscript
On with multiple clauses via 'or' does not allow 'from' clause.
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
Minimal repo case showing that separate `on` handlers works, but that two `on` handlers each with a `from` clause causes a "Expected commandList" error.
```html
behavior SeparateWorks
on first from #events
toggle [@hidden] on me
end
on second from #events
toggle [@hidden] on me
end
end
behavior FirstDoesntWork
-- No syntax error, but first function doesn't toggle
on first or second from #events
toggle [@hidden] on me
end
end
behavior SecondDoesntWork
-- No syntax error, but second button doesn't toggle
on first from #events or second
toggle [@hidden] on me
end
end
-- in a separate script so syntax error doesn't break other cases....
behavior Broken
on first from #events or second from #events
toggle [@hidden] on me
end
end
First
Second
- Separate Works - Initial
- Separate Works - Toggled
- Doesn't Work First - Initial
- Doesn't Work First - Toggled
- Doesn't Work Second - Initial
- Doesn't Work Second - Toggled
- Broken - Initial
- Broken - Toggled
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.