Fix lazy loading

This commit is contained in:
Tienson Qin
2020-04-12 22:19:53 +08:00
parent f1e97f279e
commit 05a63cedad
8 changed files with 30 additions and 36 deletions

View File

@@ -27,11 +27,10 @@
(.parseHtml js/window.MldocOrg content config)))
(loaded? [this]
(some? (loaded?)))
(lazyLoad [this ok-handler error-handler]
(lazyLoad [this ok-handler]
(loader/load
(config/asset-uri "/static/js/mldoc_org.min.js")
ok-handler
error-handler)))
ok-handler)))
(defn parse-json
([content]