WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Show handler instead of Function.prototype.bind
better_bind.patch (text/plain), 1.50 KB, created by
Nikita Vasilyev
on 2010-06-02 13:19:01 PDT
(
hide
)
Description:
Show handler instead of Function.prototype.bind
Filename:
MIME Type:
Creator:
Nikita Vasilyev
Created:
2010-06-02 13:19:01 PDT
Size:
1.50 KB
patch
obsolete
>diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog >index f52d855..16b103f 100644 >--- a/WebCore/ChangeLog >+++ b/WebCore/ChangeLog >@@ -1,3 +1,18 @@ >+2010-06-02 Nikita Vasilyev <me@elv1s.ru> >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ 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.binded): >+ (Function.prototype.bind.binded.toString): >+ (Function.prototype.bind): >+ > 2010-06-02 David Hyatt <hyatt@apple.com> > > Reviewed by Anders Carlsson. >diff --git a/WebCore/inspector/front-end/utilities.js b/WebCore/inspector/front-end/utilities.js >index 9ad1c10..9bc7e03 100644 >--- a/WebCore/inspector/front-end/utilities.js >+++ b/WebCore/inspector/front-end/utilities.js >@@ -55,7 +55,13 @@ 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 binded() { >+ return func.apply(thisObject, args.concat(Array.prototype.slice.call(arguments, 0))); >+ }; >+ binded.toString = function toString() { >+ return func.toString(); >+ }; >+ return binded; > } > > Node.prototype.rangeOfWord = function(offset, stopCharacters, stayWithinNode, direction)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
timothy
:
review+
timothy
:
commit-queue+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 40080
:
57687
|
57688
|
57689
|
57694
|
57700
|
57864