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

openPage时关闭当前页后,tab序列混乱 #4

Open
safecat opened this issue Mar 1, 2014 · 0 comments
Open

openPage时关闭当前页后,tab序列混乱 #4

safecat opened this issue Mar 1, 2014 · 0 comments

Comments

@safecat
Copy link

safecat commented Mar 1, 2014

有a/b/c三个页面,id分别为a,b,c。
1.通过menu打开a页面,占用第一个tab。
2.在a页面中调用openPage({id:'b'}),占用第二个tab。
3.在b页面中调用openPage({id:'c',isClose:1}),此时b页面消失,c页面占据第二个tab。
4.在页面顶部点击第二个tab的x按钮,该tab关闭后不会自动select到第一个tab,bui.js:25211报错:
Uncaught TypeError: Cannot call method 'position' of undefined.

_getDistanceToBegin这个函数被调用时,传入的item实际上已经销毁了,于是就不能getdistance了。。。

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