From a61cba639d68204b224f9f945c9890d4ad46e985 Mon Sep 17 00:00:00 2001 From: Boris Petrov Date: Thu, 20 May 2021 14:22:39 +0300 Subject: [PATCH] Fix deprecated usage of `run.join` --- addon/mixins/ajax-request.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addon/mixins/ajax-request.ts b/addon/mixins/ajax-request.ts index 245ea11a..ea13a111 100644 --- a/addon/mixins/ajax-request.ts +++ b/addon/mixins/ajax-request.ts @@ -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 { @@ -300,7 +300,7 @@ export default Mixin.create({ jqXHR, response }; - run.join(null, reject, rejectionParam); + join(null, reject, rejectionParam); } else { const resolutionParam: RawResponse = { payload, @@ -308,7 +308,7 @@ export default Mixin.create({ jqXHR, response }; - run.join(null, resolve, resolutionParam); + join(null, resolve, resolutionParam); } }) .fail((jqXHR, textStatus, errorThrown) => { @@ -352,7 +352,7 @@ export default Mixin.create({ response }; - run.join(null, reject, rejectionParam); + join(null, reject, rejectionParam); }) .always(() => { pendingRequestCount = pendingRequestCount - 1;