On Friday, August 22, 2014 7:03:08 PM UTC-7, Taylor Sando wrote:
> I looked through the source code of om and found out that there is a call to 
> to-cursor in om/root.
> 
> Seems that you have to override IToCursor if you want something custom.
> 
> (defrecord RecordTest [x y]
>   om/IToCursor
>   (-to-cursor [value state path]
>     value))
> 
> For my purposes, this is fine.  The defrecord type, as it relates to my tree 
> state, is a leaf, so nothing really needs to look into it.

Hi Taylor. I'm sorry I missed this post, I haven't looked at the ML for a 
little while. There is an open issue regarding this problem but I haven't made 
the time to look into a solution for it. This bit of information might be 
useful on that issue (https://github.com/noprompt/ankha/issues/13) and perhaps 
the README.

If you have the cycles to submit a patch, README or otherwise, send it my way. 
:-)

-- 
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.

Reply via email to