{"action":"created","issue":{"url":"https://api.github.com/repos/cugos/dropchop/issues/196","labels_url":"https://api.github.com/repos/cugos/dropchop/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/cugos/dropchop/issues/196/comments","events_url":"https://api.github.com/repos/cugos/dropchop/issues/196/events","html_url":"https://github.com/cugos/dropchop/issues/196","id":111992222,"number":196,"title":"Writing test for dc.util.xhr","user":{"login":"npeihl","id":1638483,"avatar_url":"https://avatars.githubusercontent.com/u/1638483?v=3","gravatar_id":"","url":"https://api.github.com/users/npeihl","html_url":"https://github.com/npeihl","followers_url":"https://api.github.com/users/npeihl/followers","following_url":"https://api.github.com/users/npeihl/following{/other_user}","gists_url":"https://api.github.com/users/npeihl/gists{/gist_id}","starred_url":"https://api.github.com/users/npeihl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npeihl/subscriptions","organizations_url":"https://api.github.com/users/npeihl/orgs","repos_url":"https://api.github.com/users/npeihl/repos","events_url":"https://api.github.com/users/npeihl/events{/privacy}","received_events_url":"https://api.github.com/users/npeihl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-18T00:20:54Z","updated_at":"2015-10-19T18:22:24Z","closed_at":null,"body":"While working on writing tests for #191, I noticed dc.util.xhr didn't have tests written yet. I've tried my hand at writing a test using [sinon.useFakeXMLHttpRequest](http://sinonjs.org/docs/#useFakeXMLHttpRequest). But I ran into issues with [this line](https://github.com/cugos/dropchop/blob/master/src/js/util.dropchop.js#L33). I'm still rather new to this, so I'm having trouble figuring out what `callback.bind(this, xhr)` is doing. Can you educate me? \r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/cugos/dropchop/issues/comments/149303996","html_url":"https://github.com/cugos/dropchop/issues/196#issuecomment-149303996","issue_url":"https://api.github.com/repos/cugos/dropchop/issues/196","id":149303996,"user":{"login":"mapsam","id":1943001,"avatar_url":"https://avatars.githubusercontent.com/u/1943001?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsam","html_url":"https://github.com/mapsam","followers_url":"https://api.github.com/users/mapsam/followers","following_url":"https://api.github.com/users/mapsam/following{/other_user}","gists_url":"https://api.github.com/users/mapsam/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsam/subscriptions","organizations_url":"https://api.github.com/users/mapsam/orgs","repos_url":"https://api.github.com/users/mapsam/repos","events_url":"https://api.github.com/users/mapsam/events{/privacy}","received_events_url":"https://api.github.com/users/mapsam/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T18:22:24Z","updated_at":"2015-10-19T18:22:24Z","body":"I think that's a great idea - no reason to overcomplicate things since jQuery will do it for us. What do you think @alukach?"}}