Skip navigation.

ASP.NET AJAX 1.0 Beta 2: Closures to PrototypesAll recent postsLink Dump: JavaScript Singletons

ASP.NET AJAX 1.0 Beta 2: Pseudo-Named Functions

I noticed in the debug "core" file a lot of functions are named in a funky way, e.g.:

Sys.UI.DomElement.getLocation = 
    function Sys$UI$DomElement$getLocation(element) { ... }

And then I saw this explanation:

Rather than anonymous functions, functions are pseudonamed, so that you get additional information, such as obtaining context within a stack trace.

Now, that’s good thinking! In a language as confusing as JavaScript, every bit of debug-time info counts.

Comments

No comments yet

Emails and Notifications

Would you like to be notified when somebody responds to this post? 

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):