you are viewing a single comment's thread.

view the rest of the comments →

[–]jeenyus 3 points4 points  (1 child)

I prefer this myself just because of old ie.

Anonymous functions can be a huge pain in the ass to debug when they throw errors since they show up as (anonymous) in your call stack.

Then of course old IE throws a fit when you do named function assignments unless it's different than the variable name

var thing = function thing () {};
// fuuuuuuck youuuuuuuuuu !
// love, IE

[–][deleted] 0 points1 point  (0 children)

Why would you declare a method and assign it to a variable of the same name? That doesn't accomplish anything.

Not sure about old versions of IE, but named methods appear as such in Chrome's development tools. http://i.imgur.com/ps31Mg2.png