Index: ui/webui/resources/js/util.js |
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js |
index 0c92e473dfa12d8842a47d93ad45e9af2ef70122..7c0be72ad5438f1ee893cfe4af54098233010088 100644 |
--- a/ui/webui/resources/js/util.js |
+++ b/ui/webui/resources/js/util.js |
@@ -168,14 +168,14 @@ function setQueryParam(location, key, value) { |
} |
/** |
- * @param {Node} el An element to search for ancestors with |className|. |
+ * @param {Element} el An element to search for ancestors with |className|. |
* @param {string} className A class to search for. |
- * @return {Node} A node with class of |className| or null if none is found. |
+ * @return {Element} A node with class of |className| or null if none is found. |
*/ |
function findAncestorByClass(el, className) { |
- return findAncestor(el, function(el) { |
+ return /** @type {Element} */(findAncestor(el, function(el) { |
return el.classList && el.classList.contains(className); |
- }); |
+ })); |
} |
/** |