ExtJs 组件清理
ExtJs component cleanup
我在 ExtJs-in-action 中阅读了以下评论 -
'Do not dismiss the destruction portion of a Component’s lifecycle if you plan on developing your own custom
Components. Many developers have gotten into trouble when they’ve ignored this crucial step and have code that
has left artifacts such as data Stores that continuously poll web servers...'
我从来没有在 3.4.x
上对我的 containers/components 调用显式 destructors/destroy
虽然事情似乎工作正常 - 我很好奇
1. 在哪些情况下实现析构函数变得必不可少
2.what 是在浏览器实例关闭时处理组件销毁的正确约定。
我在 ExtJs-in-action 中阅读了以下评论 -
'Do not dismiss the destruction portion of a Component’s lifecycle if you plan on developing your own custom
Components. Many developers have gotten into trouble when they’ve ignored this crucial step and have code that
has left artifacts such as data Stores that continuously poll web servers...'
我从来没有在 3.4.x
上对我的 containers/components 调用显式 destructors/destroy
虽然事情似乎工作正常 - 我很好奇
1. 在哪些情况下实现析构函数变得必不可少
2.what 是在浏览器实例关闭时处理组件销毁的正确约定。