{"action":"closed","issue":{"url":"https://api.github.com/repos/impress/impress.js/issues/654","repository_url":"https://api.github.com/repos/impress/impress.js","labels_url":"https://api.github.com/repos/impress/impress.js/issues/654/labels{/name}","comments_url":"https://api.github.com/repos/impress/impress.js/issues/654/comments","events_url":"https://api.github.com/repos/impress/impress.js/issues/654/events","html_url":"https://github.com/impress/impress.js/issues/654","id":283901548,"number":654,"title":"impress().init() fails if root div doesn't have the class \"impress\"","user":{"login":"Fandekasp","id":260983,"avatar_url":"https://avatars2.githubusercontent.com/u/260983?v=4","gravatar_id":"","url":"https://api.github.com/users/Fandekasp","html_url":"https://github.com/Fandekasp","followers_url":"https://api.github.com/users/Fandekasp/followers","following_url":"https://api.github.com/users/Fandekasp/following{/other_user}","gists_url":"https://api.github.com/users/Fandekasp/gists{/gist_id}","starred_url":"https://api.github.com/users/Fandekasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fandekasp/subscriptions","organizations_url":"https://api.github.com/users/Fandekasp/orgs","repos_url":"https://api.github.com/users/Fandekasp/repos","events_url":"https://api.github.com/users/Fandekasp/events{/privacy}","received_events_url":"https://api.github.com/users/Fandekasp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-21T14:38:36Z","updated_at":"2017-12-31T12:40:50Z","closed_at":"2017-12-31T12:40:50Z","author_association":"NONE","body":"Related: #653 \r\ndisclaimer: I haven't looked into this issue in detail.\r\n\r\nWhen using v0.6.0, I can use the following code:\r\n\r\nindex.html\r\n```\r\n<body>\r\n  <div id=\"root\"></div>\r\n</body>\r\n```\r\nindex.js\r\n```\r\nclass Root extends Component {\r\n  render() {\r\n    return (\r\n        <div id=\"impress\">\r\n          <Presentation />\r\n        </div>\r\n    )\r\n  }\r\n}\r\nReactDOM.render(<Root />, document.getElementById(\"root\"));\r\nwindow.impress('impress').init();\r\n```\r\nThe whole thing being then built by webpack ([example](https://github.com/Fandekasp/impress-react-presentations))\r\n\r\nSomehow, it fails using v1.0.0-beta1, raising the error:\r\n```\r\nUncaught TypeError: Cannot read property 'addEventListener' of null\r\n    at window.impressConsole\r\n```\r\n\r\nThe solution was to remove the root div and move other impress placeholders to index.html, as shown [in this commit](https://github.com/Fandekasp/impress-react-presentations/commit/945254f19cfe645c50075cc8ee2d925bd72cf066). Hopefully this issue can be fixed so I can revert this code :)"}}
{"actor":{"display_login":"henrikingo"}}