| 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-next-line no-restricted-properties |
| 8 var $ = function(id) { return document.getElementById(id); }; | 9 var $ = function(id) { return document.getElementById(id); }; |
| 9 | 10 |
| 10 /** | 11 /** |
| 11 * WebUI for configuring instant.* preference values used by | 12 * WebUI for configuring instant.* preference values used by |
| 12 * Chrome's instant search system. | 13 * Chrome's instant search system. |
| 13 */ | 14 */ |
| 14 var instantConfig = (function() { | 15 var instantConfig = (function() { |
| 15 'use strict'; | 16 'use strict'; |
| 16 | 17 |
| 17 /** List of fields used to dynamically build form. **/ | 18 /** List of fields used to dynamically build form. **/ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 182 } |
| 182 | 183 |
| 183 return { | 184 return { |
| 184 initialize: initialize, | 185 initialize: initialize, |
| 185 getDebugInfoResult: getDebugInfoResult, | 186 getDebugInfoResult: getDebugInfoResult, |
| 186 getPreferenceValueResult: getPreferenceValueResult | 187 getPreferenceValueResult: getPreferenceValueResult |
| 187 }; | 188 }; |
| 188 })(); | 189 })(); |
| 189 | 190 |
| 190 document.addEventListener('DOMContentLoaded', instantConfig.initialize); | 191 document.addEventListener('DOMContentLoaded', instantConfig.initialize); |
| OLD | NEW |