ember-learn / ember-learn/guides-source
[Disco]: recommending on{event} instead of on-modifier
Open
- Dominant language
- HTML
- Stars
- 161
- Forks
- 512
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 4
Description
Motivation: https://github.com/krausest/js-framework-benchmark/pull/1608
> It's idiomatic to use `{{on}}` for event listening, and `{{on}}` is the only way to have _conditionally applied_ / dynamic event listeners, but for performance sensitive situations, we can _do less_ by using the platform, and we don't need any cleanup behavior, so native `onclick` should be sufficient.
Contributor guide
Assessment
This issue has not been assessed yet.