Index: Source/devtools/front_end/documentation/JSArticle.js |
diff --git a/Source/devtools/front_end/documentation/JSArticle.js b/Source/devtools/front_end/documentation/JSArticle.js |
index ebaf79855a6285a00eacd5ce85b93062a547ef02..30eebff4fa4dde4baadbc743ecdd9f111ce382a2 100644 |
--- a/Source/devtools/front_end/documentation/JSArticle.js |
+++ b/Source/devtools/front_end/documentation/JSArticle.js |
@@ -37,8 +37,10 @@ WebInspector.JSArticle.parse = function(wikiMarkupText) |
article.summary = from["Summary_Section"]; |
if (typeof from["API_Object_Method"] !== "undefined") |
article.methods = from["API_Object_Method"]; |
- if (typeof from["Remarks_Section"] !== "undefined") |
- article.remarks = from["Remarks_Section"]; |
+ if (typeof from["Remarks_Section"] !== "undefined" && typeof from["Remarks_Section"]["Remarks"] !== "undefined") |
lushnikov
2014/08/11 09:42:49
For clarity:
if (from["Remarks_Section"] && typeo
iliia
2014/08/11 12:17:53
Done.
|
+ article.remarks = from["Remarks_Section"]["Remarks"]; |
+ if (typeof from["Examples_Section"] !== "undefined" && typeof from["Examples_Section"]["Examples"] !== "undefined") |
+ article.examples = from["Examples_Section"]["Examples"]; |
return article; |
} |