{"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":9,"created_at":"2015-02-02T21:38:25Z","updated_at":"2015-02-03T17:09:52Z","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/72690915","html_url":"https://github.com/CapillarySoftware/purescript-requestAnimationFrame/pull/1#issuecomment-72690915","issue_url":"https://api.github.com/repos/CapillarySoftware/purescript-requestAnimationFrame/issues/1","id":72690915,"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-03T17:09:52Z","updated_at":"2015-02-03T17:09:52Z","body":"Ah, maybe in the original implementation? I removed the iffy in the PR? But\r\nI could make a lazy singleton function I think.\r\n\r\nThe desire I have is to make it so that if you have raf as a dependency,\r\nyou can still write normal tests that don't require a browser. However, I\r\ncan agree that if raf is a dependency of your project, chances are you'll\r\nwant tests with a browser too. :)\r\n\r\nSo really, it depends if people find this desirable or if there is\r\nconvention for PureScript dependencies to eager initialise or not. I\r\npersonally think the change is desirable, but it's only my opinion. I can\r\nsee the clear benefit of eager setup of the shim as well.\r\n\r\n\r\n\r\nOn 3 Feb 2015 17:58, \"Michael Ficarra\" <notifications@github.com> wrote:\r\n\r\n> Of course you can, it's an IIFE. this will be the global object.\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-72688669>\r\n> .\r\n>"}}