regularjs/regular

0.5.2 _watchersForStable未能在destroy销毁

Closed this issue · 1 comments

默认在destroy之后,承载监听器的_watchers会被置为null,这样后续的$digest流程都会无效

0.5.2经过 #128 改造后,分为了_watchers 和 承载无side effect的_watchersForStable, 但是destroy中没有对 _watchersForStable 做Null值处理。有潜在隐患

默认情况下,如果没有对此组件的引用,是会被浏览器自动回收,但是不排除有应用 在destroy调用$update.

0.5.3会修复这个问题,尽快发布

如果0.5.2碰到了这个问题,请扩展destroy方法,并手动设置 _watchersForStable 为 null 即可