{"action":"closed","issue":{"url":"https://api.github.com/repos/plotly/angular-plotly.js/issues/15","repository_url":"https://api.github.com/repos/plotly/angular-plotly.js","labels_url":"https://api.github.com/repos/plotly/angular-plotly.js/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/plotly/angular-plotly.js/issues/15/comments","events_url":"https://api.github.com/repos/plotly/angular-plotly.js/issues/15/events","html_url":"https://github.com/plotly/angular-plotly.js/issues/15","id":360852985,"node_id":"MDU6SXNzdWUzNjA4NTI5ODU=","number":15,"title":"Events not working for Production builds","user":{"login":"alexgoldstone","id":540888,"node_id":"MDQ6VXNlcjU0MDg4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/540888?v=4","gravatar_id":"","url":"https://api.github.com/users/alexgoldstone","html_url":"https://github.com/alexgoldstone","followers_url":"https://api.github.com/users/alexgoldstone/followers","following_url":"https://api.github.com/users/alexgoldstone/following{/other_user}","gists_url":"https://api.github.com/users/alexgoldstone/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgoldstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgoldstone/subscriptions","organizations_url":"https://api.github.com/users/alexgoldstone/orgs","repos_url":"https://api.github.com/users/alexgoldstone/repos","events_url":"https://api.github.com/users/alexgoldstone/events{/privacy}","received_events_url":"https://api.github.com/users/alexgoldstone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-17T12:47:43Z","updated_at":"2018-09-17T15:22:50Z","closed_at":"2018-09-17T15:22:50Z","author_association":"NONE","body":"Angular CLI: 6.2.2\r\nNode: 8.11.3\r\nOS: darwin x64\r\nAngular: 6.1.1\r\nBrowser: Google Chromer Version 68.0.3440.106 (Official Build) (64-bit)\r\n\r\nMy `<plotly-plot>` component contains the following:\r\n```\r\n(hover)=\"handleHover($event)\" (unhover)=\"handleUnhover($event)\"\r\n```\r\n\r\n`handleHover` and `handleUnhover` simply console log the event.\r\n\r\n**If I run a development build using `ng serve` then everything functions correctly so it seems that in principle my code is fine.**\r\n\r\n**If I create a production build using `ng build --prod` then the charts are still rendered correctly but my `handleHover` and `handleUnhover` functions do not get called and instead I see the following in the browser console:**\r\n\r\n```\r\nmain.f138b76c7351710df66b.js:1 ERROR TypeError: Cannot read property 'call' of undefined\r\n    at main.f138b76c7351710df66b.js:1\r\n    at a.emit (main.f138b76c7351710df66b.js:1)\r\n    at HTMLDivElement.t.emit (main.f138b76c7351710df66b.js:1)\r\n    at main.f138b76c7351710df66b.js:1\r\n    at main.f138b76c7351710df66b.js:1\r\n    at l (main.f138b76c7351710df66b.js:1)\r\n    at Object.n.throttle (main.f138b76c7351710df66b.js:1)\r\n    at Object.n.hover (main.f138b76c7351710df66b.js:1)\r\n    at SVGRectElement.c.onmousemove [as __zone_symbol__ON_PROPERTYmousemove] (main.f138b76c7351710df66b.js:1)\r\n    at SVGRectElement.S (polyfills.7a0e6866a34e280f48e7.js:1)\r\nle @ main.f138b76c7351710df66b.js:1\r\nt.handleError @ main.f138b76c7351710df66b.js:1\r\nnext @ main.f138b76c7351710df66b.js:1\r\ne.object.i @ main.f138b76c7351710df66b.js:1\r\ne.__tryOrUnsub @ main.f138b76c7351710df66b.js:1\r\ne.next @ main.f138b76c7351710df66b.js:1\r\ne._next @ main.f138b76c7351710df66b.js:1\r\ne.next @ main.f138b76c7351710df66b.js:1\r\ne.next @ main.f138b76c7351710df66b.js:1\r\ne.emit @ main.f138b76c7351710df66b.js:1\r\n(anonymous) @ main.f138b76c7351710df66b.js:1\r\ne.invoke @ polyfills.7a0e6866a34e280f48e7.js:1\r\nt.run @ polyfills.7a0e6866a34e280f48e7.js:1\r\nt.runOutsideAngular @ main.f138b76c7351710df66b.js:1\r\nonHandleError @ main.f138b76c7351710df66b.js:1\r\ne.handleError @ polyfills.7a0e6866a34e280f48e7.js:1\r\nt.runTask @ polyfills.7a0e6866a34e280f48e7.js:1\r\nt.invokeTask @ polyfills.7a0e6866a34e280f48e7.js:1\r\n_ @ polyfills.7a0e6866a34e280f48e7.js:1\r\nm @ polyfills.7a0e6866a34e280f48e7.js:1\r\n```"}}
{"actor":{"display_login":"andrefarzat"}}