You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/08 08:55:16 UTC

[04/39] incubator-weex git commit: * [jsfm] destroy taskCenter when destory the document

* [jsfm] destroy taskCenter when destory the document


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/e57f8245
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/e57f8245
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/e57f8245

Branch: refs/heads/0.16-dev
Commit: e57f8245fb074b681bf5f041cf92ff8d92bb61e9
Parents: acd5814
Author: Hanks <zh...@gmail.com>
Authored: Wed Jul 26 16:07:58 2017 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Jul 26 16:07:58 2017 +0800

----------------------------------------------------------------------
 html5/runtime/vdom/document.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e57f8245/html5/runtime/vdom/document.js
----------------------------------------------------------------------
diff --git a/html5/runtime/vdom/document.js b/html5/runtime/vdom/document.js
index fe4f52f..ef8ef4e 100644
--- a/html5/runtime/vdom/document.js
+++ b/html5/runtime/vdom/document.js
@@ -185,8 +185,10 @@ Object.assign(Document.prototype, {
    * Destroy current document, and remove itself form docMap.
    */
   destroy () {
+    this.taskCenter.destroyCallback()
     delete this.listener
     delete this.nodeMap
+    delete this.taskCenter
     removeDoc(this.id)
   }
 })