FIX: uses run.next()

This commit is contained in:
Joffrey JAFFEUX
2019-04-04 14:03:04 +02:00
committed by GitHub
parent a5ec5a1e8e
commit 6b243c1179
+1 -1
View File
@@ -224,7 +224,7 @@ I18n.translations[I18n.currentLocale()].js.composer.contains_dtoc = I18n.t(
});
})(() => {});
$.fn.dtoc = $elem => {
run.scheduleOnce("next", () => {
run.next(() => {
if ($elem.hasClass("d-editor-preview")) return;
if (!$elem.parents("article#post_1").length) return;
const dToc = $elem.find(`[data-theme-toc="true"]`);