Skip navigation.

miscoded

the web is a hack

nice stack, Firebug

, ,

One of the nice UI features of Firebug is that it goes to great lengths to give functions a recognisable description.

Sometimes it even goes too far... :

Firebug stack

:smile: p: :smile:

Script formatter user JSEmployees anonymous are recruitment stars

Comments

kyleabaker 19. May 2008, 23:47

haha, that is a pretty nice feature though...when it is working. P:

d4n3 22. May 2008, 19:06

:smile:

it's probably using some simple regex string matching to find out the name of the function, something like:

.*function\s+(.*)\(

d4n3 22. May 2008, 19:30

Now that i think about it, this could be used as a feature :smile:

You could use this to name anonymous inline functions in your code on the fly, something like this:

// function addToWaitList()
jQuery.readyList.push ( function () {return f...

So this function would (presumably) show up in the stack trace as addToWaitList instead of (no name) :smile:

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies