{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/shopify_app/issues/289","repository_url":"https://api.github.com/repos/Shopify/shopify_app","labels_url":"https://api.github.com/repos/Shopify/shopify_app/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/shopify_app/issues/289/comments","events_url":"https://api.github.com/repos/Shopify/shopify_app/issues/289/events","html_url":"https://github.com/Shopify/shopify_app/issues/289","id":164136621,"number":289,"title":"Embedded app layout has application.js in wrong place to honour data-turbolink-track parameter","user":{"login":"redronin","id":10535,"avatar_url":"https://avatars.githubusercontent.com/u/10535?v=3","gravatar_id":"","url":"https://api.github.com/users/redronin","html_url":"https://github.com/redronin","followers_url":"https://api.github.com/users/redronin/followers","following_url":"https://api.github.com/users/redronin/following{/other_user}","gists_url":"https://api.github.com/users/redronin/gists{/gist_id}","starred_url":"https://api.github.com/users/redronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redronin/subscriptions","organizations_url":"https://api.github.com/users/redronin/orgs","repos_url":"https://api.github.com/users/redronin/repos","events_url":"https://api.github.com/users/redronin/events{/privacy}","received_events_url":"https://api.github.com/users/redronin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-06T17:57:41Z","updated_at":"2016-07-07T17:25:23Z","closed_at":null,"body":"I noticed that using turbolinks 5 with the embedded_app.html.erb layout file, turbolinks does not honour the data-turbolinks-track=true parameter if the application.js is being loaded outside of the <head> tag.\r\n\r\nhttps://github.com/Shopify/shopify_app/blob/19bc142036376bb1b7881c804af4b4ba8cc4c8a1/lib/generators/shopify_app/install/templates/embedded_app.html.erb#L32\r\n\r\nhttps://github.com/turbolinks/turbolinks#reloading-when-assets-change\r\n\r\nThis was causing multiple event listeners to be binded. Moving the application.js line into the <head> solved the issue.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Shopify/shopify_app/issues/comments/231148474","html_url":"https://github.com/Shopify/shopify_app/issues/289#issuecomment-231148474","issue_url":"https://api.github.com/repos/Shopify/shopify_app/issues/289","id":231148474,"user":{"login":"tylerball","id":73874,"avatar_url":"https://avatars.githubusercontent.com/u/73874?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerball","html_url":"https://github.com/tylerball","followers_url":"https://api.github.com/users/tylerball/followers","following_url":"https://api.github.com/users/tylerball/following{/other_user}","gists_url":"https://api.github.com/users/tylerball/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerball/subscriptions","organizations_url":"https://api.github.com/users/tylerball/orgs","repos_url":"https://api.github.com/users/tylerball/repos","events_url":"https://api.github.com/users/tylerball/events{/privacy}","received_events_url":"https://api.github.com/users/tylerball/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T17:25:23Z","updated_at":"2016-07-07T17:25:23Z","body":"This would explain a lot."}}
{"actor":{"display_login":"tylerball"}}