MCPcopy Create free account
hub / github.com/9miao/CrossApp / pauseSchedulesAndActions

Method pauseSchedulesAndActions

scripting/javascript/bindings/ScriptingCore.cpp:712–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712void ScriptingCore::pauseSchedulesAndActions(js_proxy_t* p)
713{
714 CCArray * arr = JSScheduleWrapper::getTargetForJSObject(p->obj);
715 if(! arr) return;
716
717 CAView* node = (CAView*)p->ptr;
718 for(unsigned int i = 0; i < arr->count(); ++i) {
719 if(arr->objectAtIndex(i)) {
720 CAScheduler::getScheduler()->pauseTarget(arr->objectAtIndex(i));
721 // node->getScheduler()->pauseTarget(arr->objectAtIndex(i));
722 }
723 }
724}
725
726
727void ScriptingCore::resumeSchedulesAndActions(js_proxy_t* p)

Callers

nothing calls this directly

Calls 2

pauseTargetMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected