James Chen
94840bb5c2
Fixes potential crash in eventDispatcher.removeListener(listener). ( #982 )
...
It may invoke `releaseListener` two times if it's dispatching event. `releaseListener` will call releaseScriptObject internally which may cause the `listener` being garbage collected.
It's hard to reproduce this issue in v1.6 since v1.6 uses SpiderMonkey as its JS engine which is not sensitive to do a GC operation.
2017-11-14 14:50:05 +08:00
James Chen
94dde6ac0d
Ref class should not be allocated on stack.
2017-07-21 16:21:48 +08:00
knoxHuang
c962ec5f98
remove superfluous code in CCEventDispatcher
2017-06-01 13:40:38 +08:00
knoxHuang
af9d7fc0bc
fix CCSystemEvent bug for fireball/issues/5821
2017-06-01 09:47:34 +08:00
James Chen
6c4b055371
remove unused checking
2017-05-19 11:10:30 +08:00
James Chen
a4e60ad6bb
fix pauseAllEventListenersForTarget couldn't work while dispatching touch event.
2017-05-19 11:10:25 +08:00
knoxHuang
0de43f6ba6
add const for getListeners
2016-12-09 14:50:28 +08:00
knoxHuang
86817f5d51
add hasEventListener for CCEventDispatcher
2016-12-07 13:48:36 +08:00
pandamicro
2971980c03
Upgrade cocos/base to v3.13
2016-08-04 16:04:41 +08:00
minggo
6045b9abb2
avoid removing event listener multiple times
2016-07-20 10:31:04 +08:00
Wenhai Lin
d4481bfd5a
Refine ( #48 )
2016-04-28 11:58:34 +08:00
Wenhai Lin
6da52bccad
Refine Websocket
2016-04-27 14:16:02 +08:00
Wenhai Lin
a50b000b17
Fixed memory leak and warns
2016-04-21 23:47:26 +08:00
Wenhai Lin
efc97073e3
Fixed memory leak
2016-04-18 11:06:14 +08:00
Wenhai Lin
2c998e8f4d
Fixed crash
2016-04-07 23:05:29 +08:00
Wenhai Lin
e4b8db424a
Withespaces does matter.
2016-04-07 21:56:30 +08:00
Wenhai Lin
b3a6312d88
Fixes wrong usage of std::vector's constructor in EventDispatcher::removeAllEventListener
2016-04-07 16:22:53 +08:00
Wenhai Lin
675711b028
Refine event system
2016-04-06 18:37:22 +08:00
Wenhai Lin
94c95d5838
Withespaces does matter.
2016-03-31 23:50:02 +08:00
Wenhai Lin
a6dbf31dcf
cocos 2d lite version
2016-03-29 17:55:48 +08:00