bigskysoftware / bigskysoftware/_hyperscript
Event handler execution count for a handler defined for a behavior is shared among all installations of that behavior
- Lingua principale
- JavaScript
- Stelle
- 3.8k
- Fork
- 172
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Riproduci il problema con il comportamento CounterToThree mostrato e due pulsanti installati, quindi traccia il modo in cui il gestore degli eventi del comportamento applica il filtro sul conteggio dei dispatch. Il lavoro è completo quando ogni pulsante risponde indipendentemente a tre clic e visualizza 3 3.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100