Показать сообщение отдельно
Старый 24.11.2011, 03:13
fljot вне форума Посмотреть профиль Отправить личное сообщение для fljot Найти все сообщения от fljot
  № 10  
Ответить с цитированием
fljot

блогер
Регистрация: Jul 2007
Сообщений: 940
Записей в блоге: 3
Цитата:
Сообщение от Universe Посмотреть сообщение
почему функция перестаёт вызываться, если я включаю useCapture? Без useCapture работает.
Цитата:
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase.
Т.е. если ваш this это элемент display list'а и он выбрасывает событие, то это событие на нём будет в фазе EventPhase.AT_TARGET, которая не ловится через useCapture