Chromium Code Reviews| Index: Source/devtools/front_end/components/ObjectPopoverHelper.js |
| diff --git a/Source/devtools/front_end/components/ObjectPopoverHelper.js b/Source/devtools/front_end/components/ObjectPopoverHelper.js |
| index 274229c35c0f3a7e5321f4536e655018d6a864c4..d4533c976701950ff12aca2c4af1f35a41642280 100644 |
| --- a/Source/devtools/front_end/components/ObjectPopoverHelper.js |
| +++ b/Source/devtools/front_end/components/ObjectPopoverHelper.js |
| @@ -81,16 +81,14 @@ WebInspector.ObjectPopoverHelper.prototype = { |
| functionName.textContent = response.functionName || WebInspector.UIString("(anonymous function)"); |
| var rawLocation = response.location; |
| - var link; |
| - if (rawLocation) { |
| + var sourceURL = response.sourceURL; |
| + if (rawLocation && sourceURL) { |
| this._linkifier = new WebInspector.Linkifier(); |
| - link = this._linkifier.linkifyRawLocation(rawLocation, "function-location-link"); |
| - } |
| - if (link) |
| + var link = this._linkifier.linkifyRawLocation(rawLocation, sourceURL, "function-location-link"); |
| title.appendChild(link); |
|
aandrey
2014/07/30 10:01:23
if (link)
sergeyv
2014/07/30 13:43:01
We do not need if anymore
|
| + } |
| container.appendChild(popoverContentElement); |
| - |
| popover.show(container, anchorElement); |
| } |