Limit force GC in menu item only work in lua-binding

This commit is contained in:
XiaoFeng 2015-12-23 12:30:59 +08:00
parent 82867b0073
commit 3fd8f36a90
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ void MenuItem::activate()
_callback(this);
}
#if CC_ENABLE_SCRIPT_BINDING
if (kScriptTypeNone != _scriptType)
if (kScriptTypeLua == _scriptType)
{
BasicScriptData data(this);
ScriptEvent scriptEvent(kMenuClickedEvent, &data);