Commit 36f3c5b6 authored by eric@webkit.org's avatar eric@webkit.org

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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6956858f
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment