Skip to content
Permalink
Browse files
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):

Canonical link: https://commits.webkit.org/51706@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
eseidel committed Jun 4, 2010
1 parent 994e47a commit 0d76d428eb17fd813c2fd49f057abda048f7e026
Showing 2 changed files with 23 additions and 1 deletion.
@@ -1,3 +1,18 @@
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):

2010-06-04 Alexander Pavlov <apavlov@chromium.org>

Unreviewed, fix Qt build.
@@ -55,7 +55,14 @@ Function.prototype.bind = function(thisObject)
{
var func = this;
var args = Array.prototype.slice.call(arguments, 1);
return function() { return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0))) };
function bound()
{
return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0)));
}
bound.toString = function() {
return "bound: " + func;
};
return bound;
}

Node.prototype.rangeOfWord = function(offset, stopCharacters, stayWithinNode, direction)

0 comments on commit 0d76d42

Please sign in to comment.