| Differences between
and this patch
- a/WebCore/ChangeLog +15 lines
Lines 1-3 a/WebCore/ChangeLog_sec1
1
2010-06-02  Nikita Vasilyev  <me@elv1s.ru>
2
3
        Reviewed by NOBODY (OOPS!).
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.binded):
13
        (Function.prototype.bind.binded.toString):
14
        (Function.prototype.bind):
15
1
2010-06-02  David Hyatt  <hyatt@apple.com>
16
2010-06-02  David Hyatt  <hyatt@apple.com>
2
17
3
        Reviewed by Anders Carlsson.
18
        Reviewed by Anders Carlsson.
- a/WebCore/inspector/front-end/utilities.js -1 / +7 lines
Lines 55-61 Function.prototype.bind = function(thisObject) a/WebCore/inspector/front-end/utilities.js_sec1
55
{
55
{
56
    var func = this;
56
    var func = this;
57
    var args = Array.prototype.slice.call(arguments, 1);
57
    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
        return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0)));
60
    };
61
    bound.toString = function toString() {
62
        return func.toString();
63
    };
64
    return bound;
59
}
65
}
60
66
61
Node.prototype.rangeOfWord = function(offset, stopCharacters, stayWithinNode, direction)
67
Node.prototype.rangeOfWord = function(offset, stopCharacters, stayWithinNode, direction)

Return to Bug 40080