Skip to content

Conversation

@rinfield
Copy link
Contributor

@rinfield rinfield commented Jul 3, 2014

Apparently, the timeout parameter for extensions.Ajax.apply is ignored.
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests#Example.3A_using_a_timeout

When timeout occurs, req would be readyState == 4 // DONE and status == 0, so apply returns Failure(AjaxException(req)).

@sjrd
Copy link
Member

sjrd commented Jul 3, 2014

Review by @lihaoyi

lihaoyi added a commit that referenced this pull request Jul 3, 2014
Honor timeout parameter in extensions.Ajax.apply
@lihaoyi lihaoyi merged commit afe9542 into scala-js:master Jul 3, 2014
@lihaoyi
Copy link
Contributor

lihaoyi commented Jul 3, 2014

Looks good to me, thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants