| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Redefine '$' here rather than including 'cr.js', since this is | 5 // Redefine '$' here rather than including 'cr.js', since this is |
| 6 // the only function needed. This allows this file to be loaded | 6 // the only function needed. This allows this file to be loaded |
| 7 // in a browser directly for layout and some testing purposes. | 7 // in a browser directly for layout and some testing purposes. |
| 8 /* eslint-disable no-restricted-properties */ |
| 8 var $ = function(id) { return document.getElementById(id); }; | 9 var $ = function(id) { return document.getElementById(id); }; |
| 10 /* eslint-enable no-restricted-properties */ |
| 9 | 11 |
| 10 /** | 12 /** |
| 11 * WebUI for configuring instant.* preference values used by | 13 * WebUI for configuring instant.* preference values used by |
| 12 * Chrome's instant search system. | 14 * Chrome's instant search system. |
| 13 */ | 15 */ |
| 14 var instantConfig = (function() { | 16 var instantConfig = (function() { |
| 15 'use strict'; | 17 'use strict'; |
| 16 | 18 |
| 17 /** List of fields used to dynamically build form. **/ | 19 /** List of fields used to dynamically build form. **/ |
| 18 var FIELDS = [ | 20 var FIELDS = [ |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 183 } |
| 182 | 184 |
| 183 return { | 185 return { |
| 184 initialize: initialize, | 186 initialize: initialize, |
| 185 getDebugInfoResult: getDebugInfoResult, | 187 getDebugInfoResult: getDebugInfoResult, |
| 186 getPreferenceValueResult: getPreferenceValueResult | 188 getPreferenceValueResult: getPreferenceValueResult |
| 187 }; | 189 }; |
| 188 })(); | 190 })(); |
| 189 | 191 |
| 190 document.addEventListener('DOMContentLoaded', instantConfig.initialize); | 192 document.addEventListener('DOMContentLoaded', instantConfig.initialize); |
| OLD | NEW |