Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Add Shims for AbortController and AbortSignal #143

Merged
merged 3 commits into from
Jul 16, 2018

Conversation

nicknisi
Copy link
Member

Type: feature

The following has been addressed in the PR:

Description:

This adds a shim for AbortController and AbortSignal, which will be used by @dojo/core/request as discussed in dojo/core#390.

  • add AbortController and AbortSignal shims
  • add unit tests

- add AbortController and AbortSignal shims
- add unit tests
@nicknisi nicknisi force-pushed the abort-signal-controller branch from c3408c2 to 9407f68 Compare May 31, 2018 17:45
@dasa
Copy link

dasa commented Jul 5, 2018

Can this be merged?

@nicknisi
Copy link
Member Author

nicknisi commented Jul 6, 2018

The tests are failing in IE11. I'll look into why and get it fixed so it can be merged.

return new Promise((resolve) => {
let called = 0;
const expectedCalls = 2;
const createEvent = (type: string) => (global.Event ? new Event(type) : ({ type } as Event));
Copy link

@ycabon ycabon Jul 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would document.createEvent('Event'); work here in place of the constructor for IE11?

@nicknisi nicknisi merged commit 56b39c0 into dojo:master Jul 16, 2018
@nicknisi nicknisi deleted the abort-signal-controller branch July 16, 2018 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants