updates CCScheduler to work with the JS Bindings

This commit is contained in:
Rolando Abarca 2012-07-31 15:09:27 -07:00 committed by folecr
parent a97d0f5a95
commit ce40351855
1 changed files with 3 additions and 9 deletions

View File

@ -161,9 +161,7 @@ void CCTimer::update(float dt)
{
(m_pTarget->*m_pfnSelector)(m_fElapsed);
}
#ifdef COCOS2D_JAVASCRIPT
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
#else
#ifndef COCOS2D_JAVASCRIPT
if (m_nScriptHandler)
{
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);
@ -183,9 +181,7 @@ void CCTimer::update(float dt)
{
(m_pTarget->*m_pfnSelector)(m_fElapsed);
}
#ifdef COCOS2D_JAVASCRIPT
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
#else
#ifndef COCOS2D_JAVASCRIPT
if (m_nScriptHandler)
{
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);
@ -204,9 +200,7 @@ void CCTimer::update(float dt)
{
(m_pTarget->*m_pfnSelector)(m_fElapsed);
}
#ifdef COCOS2D_JAVASCRIPT
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed, (CCNode *)this);
#else
#ifndef COCOS2D_JAVASCRIPT
if (m_nScriptHandler)
{
CCScriptEngineManager::sharedManager()->getScriptEngine()->executeSchedule(m_nScriptHandler, m_fElapsed);