Merge pull request #586 from CocosRobot/update_js_bindings_1490783010

[ci skip][AUTO]: updating jsbinding automatically
This commit is contained in:
Wang Nan
2017-03-29 18:39:35 +08:00
committed by GitHub
2 changed files with 1 additions and 17 deletions
@@ -808,18 +808,6 @@ syncNode : function (
{
},
/**
* @method setFixtureNext
* @param {b2Fixture} arg0
* @param {b2Fixture} arg1
*/
setFixtureNext : function (
b2fixture,
b2fixture
)
{
},
/**
* @method removeB2Body
* @param {b2Body} arg0
@@ -2334,11 +2334,7 @@ bool js_creator_PhysicsRayCastCallback_getFractions(JSContext *cx, uint32_t argc
if (argc == 0) {
std::vector<float, std::allocator<float> >& ret = cobj->getFractions();
JS::RootedValue jsret(cx);
if (ret) {
jsret = OBJECT_TO_JSVAL(js_get_or_create_jsobject<std::vector<float, std::allocator<float> >&>(cx, (std::vector<float, std::allocator<float> >&)ret));
} else {
jsret = JSVAL_NULL;
};
jsret = std_vector_float_to_jsval(cx, ret);
args.rval().set(jsret);
return true;
}