{"action":"closed","issue":{"url":"https://api.github.com/repos/imsky/holder/issues/137","labels_url":"https://api.github.com/repos/imsky/holder/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/imsky/holder/issues/137/comments","events_url":"https://api.github.com/repos/imsky/holder/issues/137/events","html_url":"https://github.com/imsky/holder/issues/137","id":70596011,"number":137,"title":"Unit test fails with PhantomJS","user":{"login":"tomohiro-n","id":4282112,"avatar_url":"https://avatars.githubusercontent.com/u/4282112?v=3","gravatar_id":"","url":"https://api.github.com/users/tomohiro-n","html_url":"https://github.com/tomohiro-n","followers_url":"https://api.github.com/users/tomohiro-n/followers","following_url":"https://api.github.com/users/tomohiro-n/following{/other_user}","gists_url":"https://api.github.com/users/tomohiro-n/gists{/gist_id}","starred_url":"https://api.github.com/users/tomohiro-n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomohiro-n/subscriptions","organizations_url":"https://api.github.com/users/tomohiro-n/orgs","repos_url":"https://api.github.com/users/tomohiro-n/repos","events_url":"https://api.github.com/users/tomohiro-n/events{/privacy}","received_events_url":"https://api.github.com/users/tomohiro-n/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/imsky/holder/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-24T05:56:03Z","updated_at":"2015-05-03T03:33:05Z","closed_at":"2015-05-03T03:33:05Z","body":"Hi,\r\n\r\nI'm using holder.js v2.6.0 and ran into sort of reasonably incompatible error with PhantomJS at my unit testing as below.\r\n\r\n```\r\nPhantomJS 1.9.8 (Mac OS X) ERROR\r\n  TypeError: 'undefined' is not a function (evaluating 'global.requestAnimationFrame(visibilityCheck)')\r\n  at /blah/blah/blah/bower_components/holderjs/holder.js:1003\r\n```\r\n\r\nI understand holder.js doesn't have to work with no-UI environment but it's appreciated if we could avoid an error by not evaluating it on PhantomJS or so.\r\nThe workaround I did was to add [requestAnimationFrame](https://github.com/cagosta/requestAnimationFrame) to devDependencies and unbeautifully manipulated an order them to be read at testing.\r\n\r\nThank you!"}}