{"action":"created","issue":{"url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1","labels_url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1/comments","events_url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1/events","html_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1","id":56297015,"number":1,"title":"Move rAF definition","user":{"login":"groodt","id":343415,"avatar_url":"https://avatars.githubusercontent.com/u/343415?v=3","gravatar_id":"","url":"https://api.github.com/users/groodt","html_url":"https://github.com/groodt","followers_url":"https://api.github.com/users/groodt/followers","following_url":"https://api.github.com/users/groodt/following{/other_user}","gists_url":"https://api.github.com/users/groodt/gists{/gist_id}","starred_url":"https://api.github.com/users/groodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groodt/subscriptions","organizations_url":"https://api.github.com/users/groodt/orgs","repos_url":"https://api.github.com/users/groodt/repos","events_url":"https://api.github.com/users/groodt/events{/privacy}","received_events_url":"https://api.github.com/users/groodt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-02T21:38:25Z","updated_at":"2015-02-03T21:39:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/pulls/1","html_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1","diff_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1.diff","patch_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1.patch"},"body":"Move rAF definition so global reference does not evaluate if requestAnimationFrame unused."},"comment":{"url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/comments/72740645","html_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1#issuecomment-72740645","issue_url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1","id":72740645,"user":{"login":"groodt","id":343415,"avatar_url":"https://avatars.githubusercontent.com/u/343415?v=3","gravatar_id":"","url":"https://api.github.com/users/groodt","html_url":"https://github.com/groodt","followers_url":"https://api.github.com/users/groodt/followers","following_url":"https://api.github.com/users/groodt/following{/other_user}","gists_url":"https://api.github.com/users/groodt/gists{/gist_id}","starred_url":"https://api.github.com/users/groodt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groodt/subscriptions","organizations_url":"https://api.github.com/users/groodt/orgs","repos_url":"https://api.github.com/users/groodt/repos","events_url":"https://api.github.com/users/groodt/events{/privacy}","received_events_url":"https://api.github.com/users/groodt/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T21:39:25Z","updated_at":"2015-02-03T21:39:25Z","body":"Well, of course you know that the Singleton should be done in the\r\n'Enterprise' style. ;)\r\n\r\nI'll see if I can get your version working a branch. I had a shorter\r\nversion, but for some reason tests weren't passing.\r\n\r\nOn 3 February 2015 at 22:24, Michael Ficarra <notifications@github.com>\r\nwrote:\r\n\r\n> Wow, that is way overkill. Just use this one:\r\n>\r\n> var requestAnimationFrame = (function(){\r\n>   return typeof requestAnimationFrame === \"function\" ? requestAnimationFrame :\r\n>     typeof webkitRequestAnimationFrame === \"function\" ? webkitRequestAnimationFrame :\r\n>     typeof mozRequestAnimationFrame === \"function\" ? mozRequestAnimationFrame :\r\n>     function(callback) { return setTimeout(callback, 1000 / 60); };\r\n> }());\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1#issuecomment-72737861>\r\n> .\r\n>"}}