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

在绘制期间,如销毁图形,则导致浏览器比较卡 #11

Closed
FlowerBirds opened this issue Nov 16, 2016 · 2 comments
Closed
Labels

Comments

@FlowerBirds
Copy link

1.当数据量较大,绘制时间较长;
2.在绘制期间,调用图形的dispose方法进行销毁,则会出现问题;

具体调试结果如下:
当正在绘制时,sendEvent方法发送wordclouddrawn事件,该事件会将Text添加到Storage中去,调用storage.addToMap方法。在调用图形的dispose方法时,同时也会调用storege.dispose方法,而Storage会将自身存的对象清空,elements = null,如再调用addTomap方法时,则会this.elements[el.id] = el,这句会报错,因为elemets已经为null;

以上的错误会持续发生,而不会因为报错而终止;最终会导致浏览器比较卡,目前分析到这块。

@pissang pissang added the bug label Nov 16, 2016
@pissang
Copy link
Contributor

pissang commented Dec 3, 2016

#12 ,已修复

@pissang pissang closed this as completed Dec 3, 2016
@FlowerBirds
Copy link
Author

非常感谢

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