Changeset 60682 in webkit
- Timestamp:
- Jun 4, 2010 8:37:39 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r60681 r60682 1 2010-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 1 16 2010-06-04 Alexander Pavlov <apavlov@chromium.org> 2 17 -
trunk/WebCore/inspector/front-end/utilities.js
r60206 r60682 56 56 var func = this; 57 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 { 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; 59 66 } 60 67
Note: See TracChangeset
for help on using the changeset viewer.