{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/118","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/118/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/118/events","html_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/issues/118","id":24964752,"number":118,"title":"the router.js code is not \"strict mode\" compatible","user":{"login":"pjordaan","id":2209895,"avatar_url":"https://avatars.githubusercontent.com/u/2209895?v=3","gravatar_id":"","url":"https://api.github.com/users/pjordaan","html_url":"https://github.com/pjordaan","followers_url":"https://api.github.com/users/pjordaan/followers","following_url":"https://api.github.com/users/pjordaan/following{/other_user}","gists_url":"https://api.github.com/users/pjordaan/gists{/gist_id}","starred_url":"https://api.github.com/users/pjordaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjordaan/subscriptions","organizations_url":"https://api.github.com/users/pjordaan/orgs","repos_url":"https://api.github.com/users/pjordaan/repos","events_url":"https://api.github.com/users/pjordaan/events{/privacy}","received_events_url":"https://api.github.com/users/pjordaan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-01-02T13:57:27Z","updated_at":"2015-10-21T14:30:46Z","closed_at":null,"body":"in our project we merge all our javascript in a big closure and use \"use strict\" since strict mode prevents us from falling in one of the many traps of many javascript quirks.\r\n\r\nWe want to incorporate the routing of symfony 2 in our application, but it seems router.js is not strict mode compatible for the simple fact router.js tries to do \r\nvar k= this; to get the window object. This fails in strict mode, since this is null in strict mode. Looking at the rest of the code, the rest should work just fine in strict mode."},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/comments/149914680","html_url":"https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/issues/118#issuecomment-149914680","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSJsRoutingBundle/issues/118","id":149914680,"user":{"login":"michaelperrin","id":344445,"avatar_url":"https://avatars.githubusercontent.com/u/344445?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelperrin","html_url":"https://github.com/michaelperrin","followers_url":"https://api.github.com/users/michaelperrin/followers","following_url":"https://api.github.com/users/michaelperrin/following{/other_user}","gists_url":"https://api.github.com/users/michaelperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelperrin/subscriptions","organizations_url":"https://api.github.com/users/michaelperrin/orgs","repos_url":"https://api.github.com/users/michaelperrin/repos","events_url":"https://api.github.com/users/michaelperrin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelperrin/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T14:30:46Z","updated_at":"2015-10-21T14:30:46Z","body":"Can I find somewhere the non-minified `router.js` file so that it can be easily debugged? It's a real issue that FOSJsRoutingBundle can't work in strict mode, so I'd like to have a look into it to solve the problem."}}