mirror of https://github.com/axmolengine/axmol.git
Limit force GC in menu item only work in lua-binding
This commit is contained in:
parent
82867b0073
commit
3fd8f36a90
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue