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

Layer的autoHide流程设计的不科学 #16

Open
mytharcher opened this issue Aug 22, 2012 · 0 comments
Open

Layer的autoHide流程设计的不科学 #16

mytharcher opened this issue Aug 22, 2012 · 0 comments
Labels

Comments

@mytharcher
Copy link
Collaborator

当需要点击一个按钮然后show一个layer的时候,必须让开发者主动去调用layer._preventHide()这种隐藏接口,否则show了还会被render就绑定的document点击事件给hide掉。

就个人理解,autoHide相关的事件绑定应该放在show之后去做,而且必须是临时的,即在hide之后取消绑定。而不应该让使用者主动的去了解当前是何种场景及显示状态来做额外的适应操作,应该对使用者保持简单透明。

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

No branches or pull requests

1 participant