{"action":"opened","issue":{"url":"https://api.github.com/repos/almende/vis/issues/3153","repository_url":"https://api.github.com/repos/almende/vis","labels_url":"https://api.github.com/repos/almende/vis/issues/3153/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/3153/comments","events_url":"https://api.github.com/repos/almende/vis/issues/3153/events","html_url":"https://github.com/almende/vis/issues/3153","id":234743632,"number":3153,"title":"TypeError: Cannot read property 'emitter' of null","user":{"login":"ramang16","id":15015815,"avatar_url":"https://avatars3.githubusercontent.com/u/15015815?v=3","gravatar_id":"","url":"https://api.github.com/users/ramang16","html_url":"https://github.com/ramang16","followers_url":"https://api.github.com/users/ramang16/followers","following_url":"https://api.github.com/users/ramang16/following{/other_user}","gists_url":"https://api.github.com/users/ramang16/gists{/gist_id}","starred_url":"https://api.github.com/users/ramang16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramang16/subscriptions","organizations_url":"https://api.github.com/users/ramang16/orgs","repos_url":"https://api.github.com/users/ramang16/repos","events_url":"https://api.github.com/users/ramang16/events{/privacy}","received_events_url":"https://api.github.com/users/ramang16/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-09T07:28:51Z","updated_at":"2017-06-09T07:28:51Z","closed_at":null,"body":"I am using vis to build a timeline chart in my angular js application. Below is my code. I will update my objects.. like adding new object or changing the start and end date of the object. When I do this, I am doing destroy on existing timeline and recreating it. In destroy(), it is throwing TypeError: Cannot read property 'emitter' of null.\r\n\r\nfunction displayChart(objects) {\r\n\t\tvar id = 1;\r\n\t\tvar items = [];\r\n\t\tobjects.forEach(function(el) {\r\n\t\t\tif(el.startDt) {\r\n\t\t\t\tvar item = {id: id++, content: el.name, start: $filter('calFormat')(el.startDt, \"yyyy-MM-dd\")};\r\n\t\t\t\tif(el.endDt) {\r\n\t\t\t\t\titem.end = $filter('calFormat')(el.endDt, \"yyyy-MM-dd\");\r\n\t\t\t\t}\r\n\t\t\t\titems.push(item);\r\n\t\t\t}\r\n\t\t});\r\n\t\tif($scope.tl) {\r\n\t\t\t$scope.tl.destroy();\r\n\t\t}\r\n\t\t$scope.tl = basicTL('chartId', items, undefined);\r\n\t}\r\n\r\nfunction basicTL (elId, items, options) {\r\n\t\tvar container = document.getElementById(elId);\r\n\t\tvar items = new vis.DataSet(items);\r\n\t\tvar options = options || {};\r\n\t\tvar timeline = new vis.Timeline(container, items, options);\r\n\t\treturn timeline;\r\n\t}\r\n\r\nAny help would be appreciated.\r\n\r\n\r\n![vis_null](https://user-images.githubusercontent.com/15015815/26965427-565aaaf6-4d13-11e7-8cd2-d0f9edb0d22f.png)\r\n"}}
{"actor":{"display_login":"ramang16"}}