delay opening of XHR object until next tick #39

wants to merge 1 commit into


None yet
1 participant

grncdr commented Feb 5, 2014

The use case for this is to allow attaching event listeners to "progress" events. Listeners that are attached to this event after open has been called (when the request is in readyState === 1) are ignored, so receiving progress events with requests made via require('http').request was impossible.

+ );
+ }
+ self.emit('open', xhr)

grncdr Feb 5, 2014

Pretty sure this is the wrong event name. It might make more sense to do something like '' or even re-use the 'socket' event from node core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment