On Monday, February 9, 2015 at 7:09:40 PM UTC+2, Alan MacDougall wrote:
> I've used fastclick.js in one of my own projects. Since it's compatible with
> advanced compilation, you can just include it in :foreign-libs.
>
> :foreign-libs {:file "path/to/fastclick.min.js" :provides "FastClick"}
>
> And then, in your namespace definition...
>
> (ns alpha-counter.core
> (:require [all.the.usual :as itself]
> [FastClick])) ; foreign lib, appears as js/FastClick
>
> And finally, somewhere early on:
>
> (.attach js/FastClick (.-body js/document))
>
> This appears to be idempotent, so don't worry about Figwheel reloading and
> the like.
This is helpful. Thank you.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.