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

添加Action加载完成的事件 #74

Open
otakustay opened this issue Nov 24, 2013 · 0 comments
Open

添加Action加载完成的事件 #74

otakustay opened this issue Nov 24, 2013 · 0 comments
Milestone

Comments

@otakustay
Copy link
Member

现有events#enteractioncomplete,但这个事件其实是指view.render()调用完毕。可惜从来没有规定说render()可以同步完成所有事,这里可能有异步过程,比如用ActionPanel加载一个东西

这种无法获知什么时候一个Action真正可用,会导致QA自动化测试的困难,同时框架本身的生命周期也不完善,因此需要这样一个事件,如actionrendercomplete

初步计划,由于ER不应该再庞大,因此看一下,和其它issue合并放到er-life插件里,为ER的生命周期进行完整的扩展,需要的时候再引入插件即可

  • View上添加一个rendercomplete事件,默认在render的最后触发
  • 提供supressRenderComplete()方法,调用后就不会触发rendercomplete事件了,可以自己控制
  • 提供waitForActionPanel方法,提供一个id,自动等这个ActionPanel加载完成。但这个要引入对ef框架的依赖,感觉不应该做,或者把插件改为ef-life
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant