{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/3561","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3561/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3561/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3561/events","html_url":"https://github.com/chartjs/Chart.js/issues/3561","id":187611500,"number":3561,"title":"[BUG] Destruction error","user":{"login":"charsleysa","id":1219661,"avatar_url":"https://avatars.githubusercontent.com/u/1219661?v=3","gravatar_id":"","url":"https://api.github.com/users/charsleysa","html_url":"https://github.com/charsleysa","followers_url":"https://api.github.com/users/charsleysa/followers","following_url":"https://api.github.com/users/charsleysa/following{/other_user}","gists_url":"https://api.github.com/users/charsleysa/gists{/gist_id}","starred_url":"https://api.github.com/users/charsleysa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charsleysa/subscriptions","organizations_url":"https://api.github.com/users/charsleysa/orgs","repos_url":"https://api.github.com/users/charsleysa/repos","events_url":"https://api.github.com/users/charsleysa/events{/privacy}","received_events_url":"https://api.github.com/users/charsleysa/received_events","type":"User","site_admin":false},"labels":[{"id":32309884,"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Category:%20Bug","name":"Category: Bug","color":"fc2929","default":false},{"id":409249702,"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Needs%20Investigation","name":"Needs Investigation","color":"860145","default":false},{"id":42400464,"url":"https://api.github.com/repos/chartjs/Chart.js/labels/Needs%20test%20case","name":"Needs test case","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-07T02:23:39Z","updated_at":"2016-11-07T03:39:32Z","closed_at":null,"body":"<!--\r\nPlease consider the following before submitting an issue:\r\n\r\n- Issues are reserved for BUG reports and FEATURE requests, DO NOT create issues for questions or support requests.\r\n- Most features should start as plugins outside of Chart.js (http://www.chartjs.org/docs/#advanced-usage-creating-plugins).\r\n- Bug reports MUST be submitted with an interactive example (http://codepen.io/pen?template=JXVYzq).\r\n- Chart.js 1.x is NOT supported anymore, new issues will be disregarded.\r\n-->\r\n\r\n<!--- Provide a general summary of the issue in the Title above prefixed by [BUG] or [FEATURE] -->\r\n\r\n## Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\nChart should be successfully destroyed.\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\nChart throws error during destruction.\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\nError is thrown [on this line](https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L678) with the context being undefined.\r\nIssue is caused [on this line](https://github.com/chartjs/Chart.js/blame/master/src/core/core.controller.js#L673) due the context being set to undefined\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code to reproduce, if relevant -->\r\n1. Create a Chart\r\n2. Destroy the chart calling `.destroy()`\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\nFor SPA this can cause issues with state corruption.\r\n\r\n## Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Chart.js version: 2.4.0 (latest master)\r\n* Browser name and version: Chrome 54\r\n* Link to your project: [JSBin](http://jsbin.com/sawucaforo/edit?html,js,output)\r\n"},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/258740752","html_url":"https://github.com/chartjs/Chart.js/issues/3561#issuecomment-258740752","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/3561","id":258740752,"user":{"login":"charsleysa","id":1219661,"avatar_url":"https://avatars.githubusercontent.com/u/1219661?v=3","gravatar_id":"","url":"https://api.github.com/users/charsleysa","html_url":"https://github.com/charsleysa","followers_url":"https://api.github.com/users/charsleysa/followers","following_url":"https://api.github.com/users/charsleysa/following{/other_user}","gists_url":"https://api.github.com/users/charsleysa/gists{/gist_id}","starred_url":"https://api.github.com/users/charsleysa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charsleysa/subscriptions","organizations_url":"https://api.github.com/users/charsleysa/orgs","repos_url":"https://api.github.com/users/charsleysa/repos","events_url":"https://api.github.com/users/charsleysa/events{/privacy}","received_events_url":"https://api.github.com/users/charsleysa/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T03:39:32Z","updated_at":"2016-11-07T03:39:32Z","body":"@etimberg the issue only occurs on high density screen (such as the Surface Pro 4 screen).\r\nI've added a link to a JSBin which recreates this issue.\r\nI am using the latest from master."}}
{"actor":{"display_login":"charsleysa"}}