hafriedlander / jquery.entwine

Concrete UI programming library for jQuery
BSD 3-Clause "New" or "Revised" License
152 stars 15 forks source link

Anon functions name hinting through displayName property #23

Open chillu opened 11 years ago

chillu commented 11 years ago

Its hard to debug entwine stacktraces because its wholly built on anonymous functions which don't hint their origin other than the filename in the trace view. At least in WebKit, this can be fixed by assigning a displayName attribute to the function object: http://www.alertdebugging.com/2009/04/29/building-a-better-javascript-profiler-with-webkit/