Self triggering events
Abierto
enhancement
- Lenguaje dominante
- JavaScript
- Estrellas
- 136
- Forks
- 10
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.