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

Unified Diff: chrome/browser/resources/instant/instant.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: hackhackhack Created 3 years, 11 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: chrome/browser/resources/instant/instant.js
diff --git a/chrome/browser/resources/instant/instant.js b/chrome/browser/resources/instant/instant.js
index e874fca872930bca9d6cb42b3d137646a918353c..91344c9849dffbd745ff4b5105b41d1a75cf8be7 100644
--- a/chrome/browser/resources/instant/instant.js
+++ b/chrome/browser/resources/instant/instant.js
@@ -5,7 +5,9 @@
// Redefine '$' here rather than including 'cr.js', since this is
// the only function needed. This allows this file to be loaded
// in a browser directly for layout and some testing purposes.
-var $ = function(id) { return document.getElementById(id); };
+var $ = function(id) {
+ return document.getElementById(id);
+};
/**
* WebUI for configuring instant.* preference values used by
@@ -57,14 +59,18 @@ var instantConfig = (function() {
input.type = field.type;
input.id = field.key;
input.title = "Default Value: " + field.default;
- if (field.size) input.size = field.size;
+ if (field.size)
+ input.size = field.size;
input.min = field.min || 0;
- if (field.max) input.max = field.max;
- if (field.step) input.step = field.step;
+ if (field.max)
+ input.max = field.max;
+ if (field.step)
+ input.step = field.step;
row.appendChild(input);
var units = createElementWithClass('div', 'row-units');
- if (field.units) units.innerHTML = field.units;
+ if (field.units)
+ units.innerHTML = field.units;
row.appendChild(units);
$('instant-form').appendChild(row);
@@ -78,8 +84,8 @@ var instantConfig = (function() {
for (var i = 0; i < FIELDS.length; i++) {
var field = FIELDS[i];
$(field.key).onchange = (function(key) {
- setPreferenceValue(key);
- }).bind(null, field.key);
+ setPreferenceValue(key);
+ }).bind(null, field.key);
}
}

Powered by Google App Engine
This is Rietveld 408576698