Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1094)

Unified Diff: Source/devtools/front_end/documentation/JSArticle.js

Issue 455343002: DevTools: Add new DocumentationURLProvider sources and some tests for documentation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698