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

Unified Diff: Source/devtools/front_end/documentation/DocumentationURLProvider.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/DocumentationURLProvider.js
diff --git a/Source/devtools/front_end/documentation/DocumentationURLProvider.js b/Source/devtools/front_end/documentation/DocumentationURLProvider.js
index 9fc4f257e31340797789b39c1b52f76ce965833f..f59bdc29de9db5891fee05c8a4ee4fc7a8c2b8d8 100644
--- a/Source/devtools/front_end/documentation/DocumentationURLProvider.js
+++ b/Source/devtools/front_end/documentation/DocumentationURLProvider.js
@@ -5,13 +5,15 @@
/**
* @constructor
*/
-WebInspector.DocumentationURLProvider = function() {}
+WebInspector.DocumentationURLProvider = function()
+{
+}
/**
* @const
* @type {!Array.<!Object, string>}
*/
-WebInspector.DocumentationURLProvider._Sources = [
+WebInspector.DocumentationURLProvider._sources = [
{ source: window, url: "javascript/" },
{ source: window.Node.prototype, url: "dom/Node/" },
{ source: window.Object, url: "javascript/Object/" },
@@ -20,12 +22,12 @@ WebInspector.DocumentationURLProvider._Sources = [
{ source: window.String, url: "javascript/String/" },
{ source: window.Date, url: "javascript/Date/" },
{ source: window.JSON, url: "javascript/JSON/" }
-]
+];
/**
* @const
*/
-WebInspector.DocumentationURLProvider._URLFormat = "http://docs.webplatform.org/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|content&format=json"
+WebInspector.DocumentationURLProvider._urlFormat = "http://docs.webplatform.org/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|content&format=json"
WebInspector.DocumentationURLProvider.prototype = {
/**
@@ -34,10 +36,10 @@ WebInspector.DocumentationURLProvider.prototype = {
*/
itemPath: function(searchTerm)
{
- for (var i = 0; i < WebInspector.DocumentationURLProvider._Sources.length; ++i) {
- var sourceRef = WebInspector.DocumentationURLProvider._Sources[i];
+ for (var i = 0; i < WebInspector.DocumentationURLProvider._sources.length; ++i) {
+ var sourceRef = WebInspector.DocumentationURLProvider._sources[i];
if (sourceRef.source[searchTerm] instanceof Function)
- return String.sprintf(WebInspector.DocumentationURLProvider._URLFormat, sourceRef.url, searchTerm);
+ return String.sprintf(WebInspector.DocumentationURLProvider._urlFormat, sourceRef.url, searchTerm);
}
return null;
}
« no previous file with comments | « Source/devtools/front_end/documentation/CSSArticle.js ('k') | Source/devtools/front_end/documentation/JSArticle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698