Я не видел источник этой функции, но мне интересно, работает ли она так:
- Выбирает элемент своими selecotrs
- Делегирует предоставленные им обработчики событий
- Запускает
setInterval
на этом селекторе и постоянно не делюгирует, а затем повторно делегирует это же событие по всему
Или есть объяснение DOM для чистого JavaScript?