Connor McEwen b8ff6212f8 bind this in onreadystatechange call
Summary:
I ran into this problem that `this` is undefined in `onreadystatechange` function calls while using this github api library: https://github.com/michael/github/blob/master/github.js#L72

It seems that in the browser, the `onreadystatechange` function expects `this` to be bound. This example on the xhr spec website can be seen using `this` similarly: https://xhr.spec.whatwg.org/#the-getresponseheader()-method
Closes https://github.com/facebook/react-native/pull/5373

Reviewed By: svcscm

Differential Revision: D2838940

Pulled By: nicklockwood

fb-gh-sync-id: e42184887c7abb0af9c4358a5f33b8c97155624c
2016-01-18 08:55:35 -08:00
..
2016-01-06 10:33:29 -08:00
2016-01-08 15:42:32 -08:00
2015-12-15 09:09:32 -08:00
2016-01-12 03:11:31 -08:00
2016-01-14 14:04:34 -08:00
2015-12-23 10:08:38 -08:00
2015-12-23 12:40:33 -08:00
2015-12-18 17:04:29 -08:00
2015-12-03 09:10:29 -08:00
2016-01-15 05:15:31 -08:00
2016-01-14 14:04:34 -08:00
2016-01-15 05:15:31 -08:00
2016-01-07 12:01:56 -08:00