fixed missing function
Merge branch 'v3-gc-refactor' of https://github.com/Dhilan007/cocos2d-x into v3-gc-refactorClass
add const for getter.
fixed redefinition of 'registerListeners'