Prevent Pjax error when trying to parse content of an aborted request. #336

Merged
merged 5 commits into from Nov 9, 2012

Conversation

Projects
None yet
2 participants
Owner

ericf commented Nov 9, 2012

When an Y.io() request is aborted (which happens to a pending IO request when a new one comes in), Pjax's getContent() method was calling methods on a null Y.Node object, which throws. This checks that the document fragment node that's created is not null before calling methods on it.

Note: There's also some de-linting noise.

@yuibuild yuibuild merged commit 28e1fbb into yui:master Nov 9, 2012

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment