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

获取已有 room 的回调参数应该就是这个 room #49

Closed
wangxiao opened this issue Mar 31, 2015 · 2 comments
Closed

获取已有 room 的回调参数应该就是这个 room #49

wangxiao opened this issue Mar 31, 2015 · 2 comments

Comments

@wangxiao
Copy link
Contributor

感谢 @liuyanghejerry 的建议。

我会考虑:

  • 每个回调中的 this,是否应该就是这个 roomObject;
  • 回调的参数是否可以获得 roomObject;
@liuyanghejerry
Copy link

建议使用第二种方案,因为给回调绑定this,将会影响开发者自己所提供的函数中已经绑定的this(开发者将无法直接使用一个“方法”来作为回调)。

@wangxiao
Copy link
Contributor Author

wangxiao commented Apr 7, 2015

#61

@wangxiao wangxiao closed this as completed Apr 7, 2015
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

2 participants