mirror of
https://github.com/discourse/discourse-math.git
synced 2025-02-16 16:34:56 +00:00
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:
parent
dbd7c1c84b
commit
bf07db4916
@ -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(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user