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

Unified Diff: ui/webui/resources/js/load_time_data.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well Created 4 years 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
« no previous file with comments | « ui/webui/resources/js/i18n_behavior.js ('k') | ui/webui/resources/js/parse_html_subset.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/load_time_data.js
diff --git a/ui/webui/resources/js/load_time_data.js b/ui/webui/resources/js/load_time_data.js
index 1ed68a64d5e1f6fca04cc2f0164e5968352de309..38b4721e13c9a4ac3d4c5da425ec84e38396b5e0 100644
--- a/ui/webui/resources/js/load_time_data.js
+++ b/ui/webui/resources/js/load_time_data.js
@@ -39,13 +39,17 @@ function LoadTimeData(){}
* Returns a JsEvalContext for |data_|.
* @returns {JsEvalContext}
*/
- createJsEvalContext: function() { return new JsEvalContext(this.data_); },
+ createJsEvalContext: function() {
+ return new JsEvalContext(this.data_);
+ },
/**
* @param {string} id An ID of a value that might exist.
* @return {boolean} True if |id| is a key in the dictionary.
*/
- valueExists: function(id) { return id in this.data_; },
+ valueExists: function(id) {
+ return id in this.data_;
+ },
/**
* Fetches a value, expecting that it exists.
@@ -84,8 +88,9 @@ function LoadTimeData(){}
return '';
var varArgs = arguments;
- return value.replace(
- /\$[$1-9]/g, function(m) { return m == '$$' ? '$' : varArgs[m[1]]; });
+ return value.replace(/\$[$1-9]/g, function(m) {
+ return m == '$$' ? '$' : varArgs[m[1]];
+ });
},
/**
« no previous file with comments | « ui/webui/resources/js/i18n_behavior.js ('k') | ui/webui/resources/js/parse_html_subset.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698