bigskysoftware / bigskysoftware/_hyperscript
Event handler execution count for a handler defined for a behavior is shared among all installations of that behavior
- Vorherrschende Sprache
- JavaScript
- Sterne
- 3.8k
- Forks
- 171
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduziere das Problem mit dem gezeigten CounterToThree-Verhalten und zwei installierten Buttons und verfolge anschließend, wie der Event-Handler des Verhaltens den Dispatch-Count-Filter anwendet. Fertig ist es, wenn jeder Button unabhängig auf drei Klicks reagiert und 3 3 anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100