| 844 | } |
| 845 | |
| 846 | int ScriptingCore::executeLayerTouchEvent(CAView* pLayer, int eventType, CATouch *pTouch) |
| 847 | { |
| 848 | std::string funcName = ""; |
| 849 | getTouchFuncName(eventType, funcName); |
| 850 | |
| 851 | jsval jsret; |
| 852 | getJSTouchObject(this->getGlobalContext(), pTouch, jsret); |
| 853 | JSObject *jsObj = JSVAL_TO_OBJECT(jsret); |
| 854 | bool retval = executeFunctionWithObjectData(pLayer, funcName.c_str(), jsObj); |
| 855 | |
| 856 | removeJSTouchObject(this->getGlobalContext(), pTouch, jsret); |
| 857 | |
| 858 | return retval; |
| 859 | } |
| 860 | |
| 861 | bool ScriptingCore::executeFunctionWithObjectData(CAView *self, const char *name, JSObject *obj) { |
| 862 |
nothing calls this directly
no test coverage detected