cljsjs jquery rewrite in my clojurescript app -
my program built such following line works under simple compilation (e.g. figwheel):
(-> (js/jquery "document") (.ready #(.tooltip (js/jquery "[data-toggle='tooltip']")))) i need work under advanced compilation i've installed , required cljsjs/jquery. however, i'm not sure how rewrite above code utilize cljsjs. know (js/jquery.) returns thing, can .init, i'm flying in dark here. what's equivalent cljsjs version of working code above?
what works js/jquery "document" in simple compilation can, after including cljsjs/jquery done js/$ "document" . tooltips need cljsjs/bootstrap, however, after new line is:
(-> (js/$ "document") (.ready #(.tooltip (js/$ "[data-toggle='tooltip']"))))
Comments
Post a Comment