Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function.lua 中class的机制偶现bug #517

Open
eric1lubow opened this issue Jan 23, 2015 · 0 comments
Open

function.lua 中class的机制偶现bug #517

eric1lubow opened this issue Jan 23, 2015 · 0 comments

Comments

@eric1lubow
Copy link

问题如下:
我用lua创建一个c++的对象 如LuaTableView,当使用该对象的方法reloadData()时,偶尔会调到其他lua类的同名方法,导致预想不到的错误。
经过测试,在手机出现概率非常高,在电脑上概率较低。我的cocos2dx 是 2.2.1的。

代码片段:
TableList.lua:
local tableview = LuaTableView:createWithHandler(self.handler, CCSizeMake(self.contentSize.width,self.contentSize.height), nil, colCount, loadInterval)
tableview:reloadData()

HeroBaseDialogView.lua
function HeroBaseDialogView:reloadData( )
self:initData()
self.m_leftLayer:setData(self.m_player)
self:loadHeroShow()
-- self.m_leftLayer:reloadData()
end
Uploading QQ图片20150123113048.jpg . . .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant