bem-core
bem-core copied to clipboard
i-bem-dom__event-manager_type_dom: Optimize all "closest" to a single traversing
We can avoid many .closest calls in favour of custom traversing.
Should be done with "benchmark first" strategy.
See also https://github.com/bem/bem-core/tree/i-bem-bench%40v2
Waiting for #394 first