I'd start by naming the anonymous functions. (?)() could mean lots of
different things than you think.
If I have
setTimeOut( function() {...});
I use
setTimeOut( function delayX() {} ):
to avoid anonymous functions for example.
jjb
On Feb 11, 11:28 pm, Sid <[email protected]> wrote:
> Thanks for your reply John.
>
> My main concern is, the Firebug profiler is showing this function to
> be called >100k times, which was not the case. This function never got
> called. (I am sure coz I had put a debugger in this function, and the
> debugger never got hit)
>
> Any idea why this could be the case?
>
> -Sid.
>
> On Feb 11, 9:01 pm, John J Barton <[email protected]> wrote:
>
> > That '(?) ()' means firebug could not figure out the function name.
> > The algorithm for extracting the name needs work, but it is a hard
> > problem. Even human readers have trouble naming JS functions ;-).
>
> > jjb
>
> > On Feb 11, 3:11 am, Sid <[email protected]> wrote:
>
> > > When I run Firebug profiler on my page, I can see that the profiler
> > > logs entries for function named as '(?) ()'.
>
> > > There is no such function in my JS code. One thing that I also
> > > observed is that sometimes it gets replaced by a genuine function in
> > > my code('OnGetTaxSuccess' in my case). But this function is never
> > > getting called during the entire profiling scenario.
>
> > > Anybody have any idea what this could be?
>
> > > -Sid.- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---