Self triggering events
Aperta
enhancement
- Lingua principale
- JavaScript
- Stelle
- 136
- Fork
- 10
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have a proposal to extend events binding syntax with following:
``` coffeescript
'change on @countrySelect!': ->
```
Event with `!` on the end of declaration, should be triggered right after binding.
This should be helpful for events like:
``` coffeescript
'resize on window!':->
@block.width $(window).width() / 2
```
or
``` coffeescript
'change on @countrySelect!': ->
@populateCitySelect(@countries[@countrySelect.val()].cities)
```
for quick setup initial values.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.