MenuItem::~MenuItem() { CC_SAFE_RELEASE(_target); unregisterScriptTapHandler(); }
CCMenuItem::~CCMenuItem() { unregisterScriptTapHandler(); }
void MenuItem::registerScriptTapHandler(int nHandler) { unregisterScriptTapHandler(); _scriptTapHandler = nHandler; LUALOG("[LUA] Add MenuItem script handler: %d", _scriptTapHandler); }
void CCMenuItem::registerScriptTapHandler(int nHandler) { unregisterScriptTapHandler(); m_nScriptHandler = nHandler; LUALOG("[LUA] Add CCMenuItem script handler: %d", m_nScriptHandler); }