From 7974e6f7afc45c19b103a2997f10379cd079fc75 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Fri, 23 Jun 2017 12:51:34 +0800 Subject: [PATCH] Use pure js event instead of native event --- native/cocos/scripting/js-bindings/manual/ScriptingCore.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/native/cocos/scripting/js-bindings/manual/ScriptingCore.cpp b/native/cocos/scripting/js-bindings/manual/ScriptingCore.cpp index 247e7133cd..0d89743713 100644 --- a/native/cocos/scripting/js-bindings/manual/ScriptingCore.cpp +++ b/native/cocos/scripting/js-bindings/manual/ScriptingCore.cpp @@ -1412,7 +1412,6 @@ bool ScriptingCore::handleTouchesEvent(void* nativeObj, cocos2d::EventTouch::Eve JS::RootedObject eventObj(_cx); jsb_get_or_create_weak_jsobject(_cx, event, typeClassEvent, &eventObj, "EventTouch"); JS::RootedValue eventVal(_cx, JS::ObjectOrNullValue(eventObj)); - executeFunctionWithOwner(eventVal, "resetStates", JS::HandleValueArray::empty()); JS::AutoValueVector valArr(_cx); valArr.append(JS::ObjectOrNullValue(jsretArr)); @@ -1449,7 +1448,6 @@ bool ScriptingCore::handleTouchEvent(void* nativeObj, cocos2d::EventTouch::Event JS::RootedObject eventObj(_cx); jsb_get_or_create_weak_jsobject(_cx, event, typeClassEvent, &eventObj, "EventTouch"); JS::RootedValue eventVal(_cx, JS::ObjectOrNullValue(eventObj)); - executeFunctionWithOwner(eventVal, "resetStates", JS::HandleValueArray::empty()); JS::AutoValueVector valArr(_cx); valArr.append(JS::ObjectOrNullValue(touchObj)); @@ -1481,7 +1479,6 @@ bool ScriptingCore::handleMouseEvent(void* nativeObj, cocos2d::EventMouse::Mouse auto typeClass = js_get_type_from_native((cocos2d::EventMouse*)event); jsb_get_or_create_weak_jsobject(_cx, event, typeClass, &eventObj); JS::RootedValue eventVal(_cx, JS::ObjectOrNullValue(eventObj)); - executeFunctionWithOwner(eventVal, "resetStates", JS::HandleValueArray::empty()); JS::HandleValueArray args(eventVal); JS::RootedValue objVal(_cx, JS::ObjectOrNullValue(p->obj));