DEV: Remove use of run-loop-and-computed-dot-access (#55)

Context: https://deprecations.emberjs.com/v3.x/#toc_deprecated-run-loop-and-computed-dot-access
This commit is contained in:
Isaac Janzen 2022-06-17 06:31:08 -05:00 committed by GitHub
parent dbd7c1c84b
commit bf07db4916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import { withPluginApi } from "discourse/lib/plugin-api"; import { withPluginApi } from "discourse/lib/plugin-api";
import { getURLWithCDN } from "discourse-common/lib/get-url"; import { getURLWithCDN } from "discourse-common/lib/get-url";
import loadScript from "discourse/lib/load-script"; import loadScript from "discourse/lib/load-script";
import { later } from "@ember/runloop";
let initializedMathJax = false; let initializedMathJax = false;
@ -78,7 +79,7 @@ function decorate(elem, isPreview) {
$elem.after($mathWrapper); $elem.after($mathWrapper);
} }
Ember.run.later( later(
this, this,
() => { () => {
window.MathJax.Hub.Queue(() => { window.MathJax.Hub.Queue(() => {