{"action":"created","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/652","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/652/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/652/events","html_url":"https://github.com/RubyLouvre/avalon/issues/652","id":53628156,"number":652,"title":"做树结构的功能时，发现内存泄露太严重","user":{"login":"xw332","id":576057,"avatar_url":"https://avatars.githubusercontent.com/u/576057?v=3","gravatar_id":"","url":"https://api.github.com/users/xw332","html_url":"https://github.com/xw332","followers_url":"https://api.github.com/users/xw332/followers","following_url":"https://api.github.com/users/xw332/following{/other_user}","gists_url":"https://api.github.com/users/xw332/gists{/gist_id}","starred_url":"https://api.github.com/users/xw332/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xw332/subscriptions","organizations_url":"https://api.github.com/users/xw332/orgs","repos_url":"https://api.github.com/users/xw332/repos","events_url":"https://api.github.com/users/xw332/events{/privacy}","received_events_url":"https://api.github.com/users/xw332/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-07T12:36:54Z","updated_at":"2015-01-08T12:50:21Z","closed_at":null,"body":"```html\r\n<!DOCTYPE HTML>\r\n<html>\r\n  <head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>测试用例</title>\r\n  </head>\r\n  <body ms-controller=\"xxx\">\r\n    <button ms-click=\"reload\">再次加载</button>\r\n    <ul>\r\n      <li ms-repeat=\"arr\">{{el.id}}\r\n        <ul ms-repeat=\"el.list\">\r\n          <li ms-repeat=\"arr\" ms-title=\"el.id\">{{el.id}}\r\n            <ul ms-repeat=\"el.list\">\r\n              <li ms-repeat=\"arr\" ms-title=\"el.id\">{{el.id}}</li>\r\n            </ul>\r\n          </li>\r\n        </ul>\r\n      </li>\r\n    </ul>\r\n\r\n    <script src=\"avalon.modern.js\"></script>\r\n    <script>\r\n      var model = avalon.define({\r\n        $id: 'xxx'\r\n      , arr: []\r\n      , reload: function() {\r\n          reload()\r\n        }\r\n      });\r\n      function reload() {\r\n        // 数值可以进行调整，模拟的是树的数据源切换\r\n        for(i=0;i<1000;i++) {\r\n          setTimeout(function() {\r\n            model.arr = [{id:1,list:[{id:2,list:[{id:2}]}]}];\r\n          }, 0)\r\n        }\r\n      }\r\n      setTimeout(function() {\r\n        reload()\r\n      }, 100)\r\n    </script>\r\n  </body>\r\n</html>\r\n```\r\n做完功能之后，发现每换一次树的数据源，内存都是翻倍上去的，都不会降下来，导致最后浏览器崩溃\r\ndemo只是很少一部分结构和数据"},"comment":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/comments/69174965","html_url":"https://github.com/RubyLouvre/avalon/issues/652#issuecomment-69174965","issue_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/652","id":69174965,"user":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T12:50:21Z","updated_at":"2015-01-08T12:50:21Z","body":"已经回收了一部分字符串，明天继续努力"}}