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

Function removeJSTouchObject

scripting/javascript/bindings/ScriptingCore.cpp:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static void removeJSTouchObject(JSContext *cx, CATouch *x, jsval &jsret) {
160 js_proxy_t* nproxy;
161 js_proxy_t* jsproxy;
162 void *ptr = (void*)x;
163 nproxy = jsb_get_native_proxy(ptr);
164 if (nproxy) {
165 jsproxy = jsb_get_js_proxy(nproxy->obj);
166 JS_RemoveObjectRoot(cx, &jsproxy->obj);
167 jsb_remove_proxy(nproxy, jsproxy);
168 }
169}
170
171void ScriptingCore::executeJSFunctionWithThisObj(jsval thisObj,
172 jsval callback,

Callers 4

Calls 3

jsb_get_native_proxyFunction · 0.85
jsb_get_js_proxyFunction · 0.85
jsb_remove_proxyFunction · 0.85

Tested by

no test coverage detected