On Friday, March 13, 2015 at 10:10:55 PM UTC+11, Sven Richter wrote:
> Hi,
> 
> I am trying the re-frame pattern with resumable.js.
> Resumable.js needs one to execute a function on an existing dom element like 
> this:
> r.assignBrowse(document.getElementById('browseButton'));
> 
> Now, the problem is, if the button is not there yet in the dom, calling 
> assignBrowse will fail obv.
> 
> I guess the best approach is to have an event when the dom is rendered and 
> afterwards call assignBrowse, but how would I do that in the re-frame pattern?
> 


I'd have a look at the reagent cookbook - it has a few chapters in on 
reagent/js-library patterns. 

--
Mike



-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to