adding purging capabilities to event dispatchers
Merge branch 'master' into cocos2dx-v2