CreateJS/TweenJS — pull request #45 by wfpaopao (2014-05-22 04:37:14+00:00)
Title: make dispatchEvent has same feathers with the w3c event flow

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));