Proposal: Make bound (curried, delayed...) functions look nicely in Web Inspector "Event Listeners" pane

5 views
Skip to first unread message

Nikita Vasilyev

unread,
Jun 4, 2010, 12:29:08 PM6/4/10
to Prototype: Core
https://prototype.lighthouseapp.com/projects/8886/tickets/1069-make-bound-functions-look-nicely-in-web-inspector-event-listeners-pane

The problem is, as Tobie pointed, easily distinguish a bound function
from a non bound function.

In the internal Web Inspector's code we decided to add "bound: "
prefix. http://trac.webkit.org/changeset/60682/trunk/WebCore/inspector/front-end/utilities.js
I think it's not a option for Prototype. At this case, bound function
could be evaluated with errors.

Another option could be "/*bound*/ " prefix.

What do you think?

Tobie Langel

unread,
Jun 7, 2010, 9:54:23 AM6/7/10
to Prototype: Core
> I think it's not a option for Prototype. At this case, bound function
> could be evaluated with errors.

Hadn't thought about that. Thanks for pointing it out!
Reply all
Reply to author
Forward
0 new messages