Hi Martin,
Assuming clicking the link is triggering a function call somewhere which
is calling the str, you could try wrapping that function or parts of
that function in a try/catch block to get more information or track down
where it is occurring, successively wrapping more and more specific
sections of the relevant code as you drill down into what is causing the
error.
Looking at the line you pointed out below, I would hazard a guess that
you are passing something into the str function that does not have an
implementation of toString (in just IE8, I guess?). Check out what
you're passing into str when a link is clicked and see where this may be
the case.
This is all speculation based on the clues you've given; it's hard to
say much more without seeing and testing the code. But hopefully this
gets you on the right track.
DD
(2014/08/31 22:43), Martin Zapata wrote:
> Hi all,
>
> I've got an app that I've built using cljs/quiescent/some other libs.
> Testing on IE 8 I'm getting errors when clicking links that come up
> with
>
> "Object doesn't support this property or method cljs.js line 5054"
>
> Looking at the file it points to a function as below (line 5054 is
> the third line in the function).
>
> What I'd like to know, is what is best way to start looking at this
> problem? What would be the best approach to tackle it?
>
> thanks, Martin
>
> cljs.core.str = function() { var a = null, b = function(a) { return
> null == a ? "" : a.toString(); }, c = function() { var b =
> function(b, c) { for (var d = new
> goog.string.StringBuffer(a.call(null, b)), e = c;;) { if
> (cljs.core.truth_(e)) { d = d.append(a.call(null,
> cljs.core.first.call(null, e))), e = cljs.core.next.call(null, e); }
> else { return d.toString(); } } }, c = function(a, c) { var e =
> null; 1 < arguments.length && (e =
> cljs.core.array_seq(Array.prototype.slice.call(arguments, 1), 0));
> return b.call(this, a, e); }; c.cljs$lang$maxFixedArity = 1;
> c.cljs$lang$applyTo = function(a) { var c = cljs.core.first(a); a =
> cljs.core.rest(a); return b(c, a); };
> c.cljs$core$IFn$_invoke$arity$variadic = b; return c; }(), a =
> function(a, e) { switch(arguments.length) { case 0: return ""; case
> 1: return b.call(this, a); default: return
> c.cljs$core$IFn$_invoke$arity$variadic(a,
> cljs.core.array_seq(arguments, 1)); } throw Error("Invalid arity: " +
> arguments.length); }; a.cljs$lang$maxFixedArity = 1;
> a.cljs$lang$applyTo = c.cljs$lang$applyTo;
> a.cljs$core$IFn$_invoke$arity$0 = function() { return ""; };
> a.cljs$core$IFn$_invoke$arity$1 = b;
> a.cljs$core$IFn$_invoke$arity$variadic =
> c.cljs$core$IFn$_invoke$arity$variadic; return a; }();
>
--
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.