| 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);
|
| }
|
| }
|
|
|
|
|