Index: Source/devtools/front_end/documentation/DocumentationURLProvider.js |
diff --git a/Source/devtools/front_end/documentation/DocumentationURLProvider.js b/Source/devtools/front_end/documentation/DocumentationURLProvider.js |
index 239ea445e388ed7b245d6e2036919b4bffda8393..baa8b8a72dc68a48355c084d75d123b2811f5279 100644 |
--- a/Source/devtools/front_end/documentation/DocumentationURLProvider.js |
+++ b/Source/devtools/front_end/documentation/DocumentationURLProvider.js |
@@ -233,11 +233,12 @@ WebInspector.DocumentationURLProvider.prototype = { |
var lastSlashIndex = itemPath.lastIndexOf("/"); |
if (lastSlashIndex === -1) |
return; |
- var sourceName = itemPath.substring(0, lastSlashIndex + 1); |
// There are some properties which have several words in their name. |
// In article list they are written through gap, while in URL they are written through underscore. |
// We are creating URL for current property, so we have to replace all the gaps with underscores. |
- var propertyName = itemPath.substring(lastSlashIndex + 1).replace(" ", "_"); |
+ var correctItemPath = itemPath.replace(" ", "_"); |
lushnikov
2014/09/04 12:27:25
correctedItemPath
semeny
2014/09/04 13:20:37
Done.
|
+ var sourceName = correctItemPath.substring(0, lastSlashIndex + 1); |
+ var propertyName = correctItemPath.substring(lastSlashIndex + 1); |
var sources = WebInspector.DocumentationURLProvider._sources; |
for (var i = 0; i < sources.length; ++i) { |
if (sources[i].url() !== sourceName || !sources[i].source().hasOwnProperty(propertyName)) |