From 77f723789b4183741b6d18d2e6f385133dff29c7 Mon Sep 17 00:00:00 2001 From: rohankuruvilla Date: Sun, 22 Jul 2012 12:32:41 -0700 Subject: [PATCH] Adding support for cc.CallFunc. --- cocos2dx/CCScheduler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2dx/CCScheduler.cpp b/cocos2dx/CCScheduler.cpp index 17ba6d89a1..0c406ecd4a 100644 --- a/cocos2dx/CCScheduler.cpp +++ b/cocos2dx/CCScheduler.cpp @@ -787,6 +787,9 @@ void CCScheduler::update(float dt) { if ((! pEntry->paused) && (! pEntry->markedForDeletion)) { +#ifdef COCOS2D_JAVASCRIPT + CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(1, dt, (CCNode *)pEntry->target); +#endif pEntry->target->update(dt); } }