Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Генерация событий на DOM узалх нано-блоков #104

Open
maksimr opened this issue Dec 27, 2013 · 0 comments · May be fixed by #105
Open

Генерация событий на DOM узалх нано-блоков #104

maksimr opened this issue Dec 27, 2013 · 0 comments · May be fixed by #105

Comments

@maksimr
Copy link
Contributor

maksimr commented Dec 27, 2013

Нужно уметь генерировать события не только на блоке, но и на узле(DomNode) этого блока.
Это повзовлит всплывать событию вврех по дереву документа.

Пример:

Событие nb-select_change на nb-select.

Можно будет обработать все события от nb-select-ов, повесив только
один обработчик на родительский узел.


var $rootNode = $('body'); // внутри содержит несколько nb-select-ов
$rootNode.on('nb-select_changed', onNbSelectChanged);

maksimr added a commit to Saunalol/nanoislands that referenced this issue Dec 27, 2013
Добавил Класс Emitter и DomEmitter (resolve yandex-ui#104)
maksimr added a commit to Saunalol/nanoislands that referenced this issue Dec 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant