| Index: ui/webui/resources/js/cr.js
|
| diff --git a/ui/webui/resources/js/cr.js b/ui/webui/resources/js/cr.js
|
| index c18569508986426839993c39c68b3008ad68c6b9..8cc812455afdbbda23e96c9946b96efdaeb50c4d 100644
|
| --- a/ui/webui/resources/js/cr.js
|
| +++ b/ui/webui/resources/js/cr.js
|
| @@ -310,8 +310,12 @@ var cr = cr || function() {
|
| function makePublic(ctor, methods, opt_target) {
|
| methods.forEach(function(method) {
|
| ctor[method] = function() {
|
| - var target = opt_target ? document.getElementById(opt_target) :
|
| - ctor.getInstance();
|
| + var target = opt_target ?
|
| + // Disable document.getElementById restriction since cr.js should
|
| + // not depend on util.js.
|
| + // eslint-disable-next-line no-restricted-properties
|
| + document.getElementById(opt_target) :
|
| + ctor.getInstance();
|
| return target[method + '_'].apply(target, arguments);
|
| };
|
| });
|
|
|