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

Commit

Permalink
Merge pull request #452 from boris-petrov/fix-ember-deprecation
Browse files Browse the repository at this point in the history
Fix deprecated usage of `run.join`
  • Loading branch information
Turbo87 authored Jun 24, 2021
2 parents c178c5e + a61cba6 commit d44a567
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/mixins/ajax-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Mixin from '@ember/object/mixin';
import { get } from '@ember/object';
import { isEmpty } from '@ember/utils';
import { assign } from '@ember/polyfills';
import { run } from '@ember/runloop';
import { join } from '@ember/runloop';
import { warn, runInDebug } from '@ember/debug';
import Ember from 'ember';
import {
Expand Down Expand Up @@ -300,15 +300,15 @@ export default Mixin.create({
jqXHR,
response
};
run.join(null, reject, rejectionParam);
join(null, reject, rejectionParam);
} else {
const resolutionParam: RawResponse = {
payload,
textStatus,
jqXHR,
response
};
run.join(null, resolve, resolutionParam);
join(null, resolve, resolutionParam);
}
})
.fail((jqXHR, textStatus, errorThrown) => {
Expand Down Expand Up @@ -352,7 +352,7 @@ export default Mixin.create({
response
};

run.join(null, reject, rejectionParam);
join(null, reject, rejectionParam);
})
.always(() => {
pendingRequestCount = pendingRequestCount - 1;
Expand Down

0 comments on commit d44a567

Please sign in to comment.