bigskysoftware / bigskysoftware/_hyperscript
Event handler execution count for a handler defined for a behavior is shared among all installations of that behavior
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
If a behavior defines an event handler with a dispath count filter, then that filter will track the total number of dispatches across all installations of that behavior, rather than applying to each installation separately.
Example:
```hyperscript
behavior CounterToThree
on click 1 to 3 increment my textContent
0
0
```
Expected behavior: I expect to be able to click each button 3 times after which the two two buttons should display 3 3
Actual behavior: The 2 buttons can be clicked 3 times _in total_. That is, once they display either 3 0, 2 1, 1 2 or 0 3, neither button will respond to additional clicks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.