{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/723","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/723/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/723/events","html_url":"https://github.com/nuxt/nuxt.js/issues/723","id":229087922,"number":723,"title":"scrollBehavior  -  Syntax Error: Unexpected token","user":{"login":"awronski","id":1973725,"avatar_url":"https://avatars1.githubusercontent.com/u/1973725?v=3","gravatar_id":"","url":"https://api.github.com/users/awronski","html_url":"https://github.com/awronski","followers_url":"https://api.github.com/users/awronski/followers","following_url":"https://api.github.com/users/awronski/following{/other_user}","gists_url":"https://api.github.com/users/awronski/gists{/gist_id}","starred_url":"https://api.github.com/users/awronski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awronski/subscriptions","organizations_url":"https://api.github.com/users/awronski/orgs","repos_url":"https://api.github.com/users/awronski/repos","events_url":"https://api.github.com/users/awronski/events{/privacy}","received_events_url":"https://api.github.com/users/awronski/received_events","type":"User","site_admin":false},"labels":[{"id":469223667,"url":"https://api.github.com/repos/nuxt/nuxt.js/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-05-16T16:08:50Z","updated_at":"2017-06-17T01:52:06Z","closed_at":null,"body":"```\"nuxt\": \"^0.10.7\"```\r\n```nuxt.config.js:```\r\n```\r\nrouter: {\r\n    scrollBehavior: function (to, from, savedPosition) {\r\n      return { x: 0, y: 0 }\r\n    }\r\n  },\r\n```\r\n\r\n\r\ngives me:\r\n```\r\nERROR  Failed to compile with 1 errors                                                 18:07:50\r\n\r\n error  in ./.nuxt/router.js\r\n\r\nSyntax Error: Unexpected token, expected ( (23:32)\r\n\r\n  21 |\r\n  22 |\r\n> 23 | const scrollBehavior = function function(to, from, savedPosition) {\r\n     |                                 ^\r\n  24 |       return { x: 0, y: 0 };\r\n  25 |     }\r\n  26 |\r\n```\r\n\r\nThanks for help,\r\n"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/309185645","html_url":"https://github.com/nuxt/nuxt.js/issues/723#issuecomment-309185645","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/723","id":309185645,"user":{"login":"acidjazz","id":967369,"avatar_url":"https://avatars0.githubusercontent.com/u/967369?v=3","gravatar_id":"","url":"https://api.github.com/users/acidjazz","html_url":"https://github.com/acidjazz","followers_url":"https://api.github.com/users/acidjazz/followers","following_url":"https://api.github.com/users/acidjazz/following{/other_user}","gists_url":"https://api.github.com/users/acidjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/acidjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acidjazz/subscriptions","organizations_url":"https://api.github.com/users/acidjazz/orgs","repos_url":"https://api.github.com/users/acidjazz/repos","events_url":"https://api.github.com/users/acidjazz/events{/privacy}","received_events_url":"https://api.github.com/users/acidjazz/received_events","type":"User","site_admin":false},"created_at":"2017-06-17T01:52:06Z","updated_at":"2017-06-17T01:52:06Z","body":"@Atinux @pi0 any update on getting scrollBehavior working? i'm trying to use it in a current project "}}
{"actor":{"display_login":"acidjazz"}}