{"action":"opened","issue":{"url":"https://api.github.com/repos/luruke/barba.js/issues/101","repository_url":"https://api.github.com/repos/luruke/barba.js","labels_url":"https://api.github.com/repos/luruke/barba.js/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/luruke/barba.js/issues/101/comments","events_url":"https://api.github.com/repos/luruke/barba.js/issues/101/events","html_url":"https://github.com/luruke/barba.js/issues/101","id":196227878,"number":101,"title":"re: reinitialze js functions","user":{"login":"anartfulscience","id":3390804,"avatar_url":"https://avatars.githubusercontent.com/u/3390804?v=3","gravatar_id":"","url":"https://api.github.com/users/anartfulscience","html_url":"https://github.com/anartfulscience","followers_url":"https://api.github.com/users/anartfulscience/followers","following_url":"https://api.github.com/users/anartfulscience/following{/other_user}","gists_url":"https://api.github.com/users/anartfulscience/gists{/gist_id}","starred_url":"https://api.github.com/users/anartfulscience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anartfulscience/subscriptions","organizations_url":"https://api.github.com/users/anartfulscience/orgs","repos_url":"https://api.github.com/users/anartfulscience/repos","events_url":"https://api.github.com/users/anartfulscience/events{/privacy}","received_events_url":"https://api.github.com/users/anartfulscience/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-17T15:42:50Z","updated_at":"2016-12-17T15:42:50Z","closed_at":null,"body":"Hello,\r\n\r\nWhat's the best way to reinitialze js functions?\r\n\r\nI'm using the smooth scroll polyfill and placing the below script within the fadeIn: function(), but it's not firing when you revisit the page. Can you help please.\r\n\r\nThanks, Stephen \r\n\r\nwindow.addEventListener('load', function() {\r\n\r\n\t    // scroll into view\r\n      document.querySelector('.js-scroll-into-hello').addEventListener('click', function(e) {\r\n        e.preventDefault();\r\n        document.querySelector('section:first-of-type').scrollIntoView({ behavior: 'smooth' });\r\n      });\r\n\r\n});"}}
{"actor":{"display_login":"anartfulscience"}}