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

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

Issue 454873006: DevTools: Fix "documentation" module code style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test 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..ae6f91d0398e10890abab7a5682549a4149ecede 100644
--- a/Source/devtools/front_end/documentation/JSArticle.js
+++ b/Source/devtools/front_end/documentation/JSArticle.js
@@ -13,7 +13,7 @@ WebInspector.JSArticle = function()
this.standardizationStatus;
/** @type {string} */
this.summary;
- /** @type {!Object.<string, ?Array.<!Object.<string> > >} */
+ /** @type {!Object.<string, ?Array.<!Object.<string>>>} */
this.methods;
/** @type {string} */
this.remarks;
@@ -26,19 +26,19 @@ WebInspector.JSArticle = function()
WebInspector.JSArticle.parse = function(wikiMarkupText)
{
var wikiParser = new WebInspector.WikiParser(wikiMarkupText);
- var from = wikiParser.document();
+ var wikiDocument = wikiParser.document();
var article = new WebInspector.JSArticle();
- if (typeof from["Page_Title"] !== "undefined" && from["Page_Title"] !== {})
- article.pageTitle = from["Page_Title"];
- if (typeof from["Standardization_Status"] !== "undefined")
- article.standardizationStatus = from["Standardization_Status"];
- if (typeof from["Summary_Section"] !== "undefined")
- 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 wikiDocument["Page_Title"] !== "undefined" && wikiDocument["Page_Title"] !== {})
+ article.pageTitle = wikiDocument["Page_Title"];
+ if (typeof wikiDocument["Standardization_Status"] !== "undefined")
+ article.standardizationStatus = wikiDocument["Standardization_Status"];
+ if (typeof wikiDocument["Summary_Section"] !== "undefined")
+ article.summary = wikiDocument["Summary_Section"];
+ if (typeof wikiDocument["API_Object_Method"] !== "undefined")
+ article.methods = wikiDocument["API_Object_Method"];
+ if (typeof wikiDocument["Remarks_Section"] !== "undefined")
+ article.remarks = wikiDocument["Remarks_Section"];
return article;
}

Powered by Google App Engine
This is Rietveld 408576698