{"action":"created","issue":{"url":"https://api.github.com/repos/antvis/g6/issues/114","repository_url":"https://api.github.com/repos/antvis/g6","labels_url":"https://api.github.com/repos/antvis/g6/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/antvis/g6/issues/114/comments","events_url":"https://api.github.com/repos/antvis/g6/issues/114/events","html_url":"https://github.com/antvis/g6/issues/114","id":279228540,"number":114,"title":"save函数的一个bug: Cannot read property 'get' of undefined","user":{"login":"feng5","id":394134,"avatar_url":"https://avatars3.githubusercontent.com/u/394134?v=4","gravatar_id":"","url":"https://api.github.com/users/feng5","html_url":"https://github.com/feng5","followers_url":"https://api.github.com/users/feng5/followers","following_url":"https://api.github.com/users/feng5/following{/other_user}","gists_url":"https://api.github.com/users/feng5/gists{/gist_id}","starred_url":"https://api.github.com/users/feng5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feng5/subscriptions","organizations_url":"https://api.github.com/users/feng5/orgs","repos_url":"https://api.github.com/users/feng5/repos","events_url":"https://api.github.com/users/feng5/events{/privacy}","received_events_url":"https://api.github.com/users/feng5/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-05T02:59:01Z","updated_at":"2017-12-05T05:58:26Z","closed_at":"2017-12-05T04:02:36Z","author_association":"NONE","body":"https://antv.alipay.com/zh-cn/g6/1.x/demo/other/anchor-attr.html 这个例子。\r\n\r\n在73行的 `net.render()` 之后增加\r\n```\r\nnet.on('itemremove',function(){\r\n\tnet.save();\r\n});\r\n```\r\n运行后鼠标全选节点和边，然后delete删除，报错 `Uncaught TypeError: Cannot read property 'get' of undefined`，详细\r\n```\r\nUncaught TypeError: Cannot read property 'get' of undefined\r\n    at VM207 g6.min.js:8\r\n    at Object.each (VM207 g6.min.js:5)\r\n    at t (VM207 g6.min.js:8)\r\n    at t._saveSource (VM207 g6.min.js:8)\r\n    at t.save (VM207 g6.min.js:6)\r\n    at <anonymous>:62:6\r\n    at VM207 g6.min.js:3\r\n    at Object.each (VM207 g6.min.js:5)\r\n    at t.fire (VM207 g6.min.js:3)\r\n    at t.removeItem (VM207 g6.min.js:6)\r\n```\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/antvis/g6/issues/comments/349204249","html_url":"https://github.com/antvis/g6/issues/114#issuecomment-349204249","issue_url":"https://api.github.com/repos/antvis/g6/issues/114","id":349204249,"user":{"login":"TomHuangCN","id":6113694,"avatar_url":"https://avatars0.githubusercontent.com/u/6113694?v=4","gravatar_id":"","url":"https://api.github.com/users/TomHuangCN","html_url":"https://github.com/TomHuangCN","followers_url":"https://api.github.com/users/TomHuangCN/followers","following_url":"https://api.github.com/users/TomHuangCN/following{/other_user}","gists_url":"https://api.github.com/users/TomHuangCN/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHuangCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHuangCN/subscriptions","organizations_url":"https://api.github.com/users/TomHuangCN/orgs","repos_url":"https://api.github.com/users/TomHuangCN/repos","events_url":"https://api.github.com/users/TomHuangCN/events{/privacy}","received_events_url":"https://api.github.com/users/TomHuangCN/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T05:58:26Z","updated_at":"2017-12-05T05:58:26Z","author_association":"CONTRIBUTOR","body":"你打个断点。console.log 出来的当前状态肯定是destroyed的，没毛病"}}
{"actor":{"display_login":"TomHuangCN"}}