In modern browser,when we dispatch a event, when eventPhase is 2,the target capturing listeners and bubbling listeners be triggered both.So I has edited some code to sync createjs's Event dispatcher feathers with DOM Event dispatcher.
You can test the following code in google home page by use browser developTool.
var logo = document.querySelector('#hplogo');
var log = function(e){console.log(e.eventPhase, 'clicked')};
logo.addEventListener('click', log, false);
logo.addEventListener('click', log, true);
Sorry for my bad english.
In modern browser,when we dispatch a event, when eventPhase is 2,the target capturing listeners and bubbling listeners be triggered both.So I has edited some code to sync createjs's Event dispatcher feathers with DOM Event dispatcher.
You can test the following code in google home page by use browser developTool.
var logo = document.querySelector('#hplogo'); var log = function(e){console.log(e.eventPhase, 'clicked')}; logo.addEventListener('click', log, false); logo.addEventListener('click', log, true);
logo.dispatchEvent(new MouseEvent('click', true));