{"action":"created","issue":{"url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/101","repository_url":"https://api.github.com/repos/alertifyjs/alertify.js","labels_url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/101/comments","events_url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/101/events","html_url":"https://github.com/alertifyjs/alertify.js/issues/101","id":156069904,"number":101,"title":"Cannot read property \"appendChild\" of null","user":{"login":"eugenedw","id":2001665,"avatar_url":"https://avatars.githubusercontent.com/u/2001665?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenedw","html_url":"https://github.com/eugenedw","followers_url":"https://api.github.com/users/eugenedw/followers","following_url":"https://api.github.com/users/eugenedw/following{/other_user}","gists_url":"https://api.github.com/users/eugenedw/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenedw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenedw/subscriptions","organizations_url":"https://api.github.com/users/eugenedw/orgs","repos_url":"https://api.github.com/users/eugenedw/repos","events_url":"https://api.github.com/users/eugenedw/events{/privacy}","received_events_url":"https://api.github.com/users/eugenedw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-20T23:41:15Z","updated_at":"2016-10-14T18:23:33Z","closed_at":null,"body":"### Expected behavior\r\nThe alertify module should have initialized properly, with no errors upon adding the following:\r\n> alertify.success(\"my success message\")\r\n\r\n### Actual behavior\r\nInstead of loading as expected, the console logged the message:\r\n\"Cannot read property 'appendChild' of null\r\n\r\n### Steps to reproduce the behavior\r\nUsing the standard (non-angular) version of alertify, version 1.0.11, and jQuery, place the message above within the $(document).ready(function(){}) closure.\r\n\r\n### Version of Alertify in use\r\n1.0.11\r\n\r\nMy resolution: \r\nDuring debugging, it was found that the \"setupLogContainer\" message was the root cause of the problem. If no \"div\" container with class \"alertify-logs\" exists, the error is thrown. Adding a container at the bottom of my webpage fixed the issue. This is an undocumented requirement, if it isn't a defect."},"comment":{"url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/comments/253882457","html_url":"https://github.com/alertifyjs/alertify.js/issues/101#issuecomment-253882457","issue_url":"https://api.github.com/repos/alertifyjs/alertify.js/issues/101","id":253882457,"user":{"login":"sebrojas14","id":1771574,"avatar_url":"https://avatars.githubusercontent.com/u/1771574?v=3","gravatar_id":"","url":"https://api.github.com/users/sebrojas14","html_url":"https://github.com/sebrojas14","followers_url":"https://api.github.com/users/sebrojas14/followers","following_url":"https://api.github.com/users/sebrojas14/following{/other_user}","gists_url":"https://api.github.com/users/sebrojas14/gists{/gist_id}","starred_url":"https://api.github.com/users/sebrojas14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebrojas14/subscriptions","organizations_url":"https://api.github.com/users/sebrojas14/orgs","repos_url":"https://api.github.com/users/sebrojas14/repos","events_url":"https://api.github.com/users/sebrojas14/events{/privacy}","received_events_url":"https://api.github.com/users/sebrojas14/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T18:23:33Z","updated_at":"2016-10-14T18:23:33Z","body":"The problem is to include de alertify.js script on head. If you move it to the end of body, not workaround is required ;)"}}
{"actor":{"display_login":"sebrojas14"}}