Projects > cpp > Issues > Bug #5568

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

cocos2d-x 3.0新的lua绑定的不足之处

Bug #5568 [Accepted]
captals2@163.com 2014-06-16 10:11 . Updated over 8 years ago

我在用ScrollView::setInnerContainerSize接受的是Size类型的参数,正确的写法本来应该是
scrollView:setInnerContainerSize(cc.size(innerWidth, innerHeight)),我不小心写成了scrollView:setInnerContainerSize(innerWidth, innerHeight),这个若在2.0版本是会做类型检测报错的,现在只是打个Log,没法走_G__TRACKBACK_的机制,这样其实无形加大了开发者的难度,请问对于这种你们把类型转换成table的做个,检测table的类型然后报错可以吗?

walzer@cocos2d-x.org 2014-06-18 06:05
  • Status changed from New to Accepted
  • Assignee set to samuele3hu
  • Priority changed from Low to High

Good point. Assigned.

walzer@cocos2d-x.org 2014-06-18 06:06
  • Project changed from cocos2d-x to cpp
walzer@cocos2d-x.org 2014-06-18 06:07
  • Priority changed from High to Normal
  • Target version set to v3.3

Atom PDF

Status:Accepted
Start date:2014-06-16
Priority:Normal
Due date:
Assignee:samuele3hu
% Done:

0%

Category:lua
Target version:v3.3