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

kernel 事件没有被监听 #44

Closed
songguangyu opened this issue Nov 27, 2017 · 4 comments
Closed

kernel 事件没有被监听 #44

songguangyu opened this issue Nov 27, 2017 · 4 comments
Assignees
Labels

Comments

@songguangyu
Copy link
Member

事件方法参见链接
https://github.com/Chimeejs/chimee-kernel

@toxic-johann toxic-johann self-assigned this Nov 27, 2017
@toxic-johann
Copy link
Member

@songguangyu
Copy link
Member Author

done,辛苦随下次小版本发布。

@songguangyu
Copy link
Member Author

发布在close吧

@toxic-johann
Copy link
Member

toxic-johann commented Nov 27, 2017

看了下代码,问题还有点多。原来之前 kernelEvents 没有用到。

  • 绑定事件
  • 解绑事件
  • silentload 切换时的动态重绑
  • error 事件处理
  • silentload 前期对 new kernel 的 error 处理
  • 单元测试通过

@toxic-johann toxic-johann added doing and removed todo labels Nov 28, 2017
toxic-johann pushed a commit that referenced this issue Nov 28, 2017
what: add eventlistener on kernel
why: kernel will dispatch it's own event
how:
1. listen on the event when we create the kernel
2. remove event listener before we destroy the kernel
3. make a event switch when we switch kernel
4. we need to add event binding in silentload before kernel switch
toxic-johann pushed a commit that referenced this issue Nov 28, 2017
fix bug described in [#44](#44)
@toxic-johann toxic-johann added fixed and removed doing labels Nov 28, 2017
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

2 participants