Changeset 60682 in webkit


Ignore:
Timestamp:
Jun 4, 2010 8:37:39 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-04 Nikita Vasilyev <me@elv1s.ru>

Reviewed by Pavel Feldman.

Web Inspector: better Function.prototype.bind for the internal code.

In the "Event Listeners" pane show handler function instead of Function.prototype.bind.

https://bugs.webkit.org/show_bug.cgi?id=40080

  • inspector/front-end/utilities.js: (Function.prototype.bind.bound): (Function.prototype.bind.bound.toString): (Function.prototype.bind):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60681 r60682  
     12010-06-04  Nikita Vasilyev  <me@elv1s.ru>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: better Function.prototype.bind for the internal code.
     6
     7        In the "Event Listeners" pane show handler function instead of Function.prototype.bind.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=40080
     10
     11        * inspector/front-end/utilities.js:
     12        (Function.prototype.bind.bound):
     13        (Function.prototype.bind.bound.toString):
     14        (Function.prototype.bind):
     15
    1162010-06-04  Alexander Pavlov  <apavlov@chromium.org>
    217
  • trunk/WebCore/inspector/front-end/utilities.js

    r60206 r60682  
    5656    var func = this;
    5757    var args = Array.prototype.slice.call(arguments, 1);
    58     return function() { return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0))) };
     58    function bound()
     59    {
     60        return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0)));
     61    }
     62    bound.toString = function() {
     63        return "bound: " + func;
     64    };
     65    return bound;
    5966}
    6067
Note: See TracChangeset for help on using the changeset viewer.