Thanks David, that's what I thought might be the case.

Oddly enough as far as I can tell, RN is a function from an om-tools mixin
(and therefore cljs code). I'll see if I can replicate in a test project.
On 30 Jul 2014 00:53, "David Nolen" <[email protected]> wrote:

> Using JS libs as their own externs is not guaranteed to work. You just
> need to supply extern files for all calls that involve JS code that
> Closure will not see.
>
> David
>
> On Tue, Jul 29, 2014 at 7:20 PM, Daniel Kersten <[email protected]>
> wrote:
> > I'm assuming that I need to determine what the RN refers to when not
> > minified and then write a proper extern file for it..
> >
> >
> > On 30 July 2014 00:15, Daniel Kersten <[email protected]> wrote:
> >>
> >> Hi,
> >>
> >> I have a large-ish ClojureScript/Om application and I'm unable to run it
> >> when compiled with :optimization :advanced.
> >> :none, :whitespace and :simple all work perfectly, but :advanced gives
> me
> >> an "undefined is not a fucntion" on the RN from the following snippet of
> >> code:
> >>
> >> return u.owner.RN( ... )
> >>
> >> I tried adding every other js file that I use as an extern, just in
> case,
> >> but this did not make a difference.
> >>
> >> Has anybody else encountered something like this before? How did you
> >> approach debugging it?
> >>
> >> Any tips or ideas would be greatly appreciated!
> >
> >
> > --
> > 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.
>
> --
> 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.
>

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