Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js |
| index 0739889fa11d4f1242db70e642d52898bb2b1f1b..7d7b3533acb0392c01f0273cc96a9b9df8f78b99 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js |
| @@ -33,7 +33,7 @@ WebInspector.Tooltip.prototype = { |
| */ |
| _mouseMove: function(event) |
| { |
| - var path = event.deepPath ? event.deepPath : event.path; |
| + var path = event.deepPath && typeof event.deepPath == "function" ? event.deepPath() : event.path; |
|
pfeldman
2016/02/01 22:52:17
You just made it undefined, no point in checking f
samli
2016/02/03 00:07:11
True, but I wanted to be able to remove the bit in
|
| if (!path || event.buttons !== 0) |
| return; |