Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: ui/webui/resources/js/i18n_template_no_process.js

Issue 405743002: Typecheck some of ui/webui/resources/js/ with Closure compiler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr.isMac fix Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/webui/resources/js/i18n_template.js ('k') | ui/webui/resources/js/load_time_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/i18n_template_no_process.js
diff --git a/ui/webui/resources/js/i18n_template_no_process.js b/ui/webui/resources/js/i18n_template_no_process.js
index fc4ca7d63387b44c6ff120ebfb7eefcdb96559c7..13ebab415136669dd5a23dd4aff396c933fa990b 100644
--- a/ui/webui/resources/js/i18n_template_no_process.js
+++ b/ui/webui/resources/js/i18n_template_no_process.js
@@ -30,7 +30,7 @@ var i18nTemplate = (function() {
* This provides the handlers for the templating engine. The key is used as
* the attribute name and the value is the function that gets called for every
* single node that has this attribute.
- * @type {Object}
+ * @type {!Object}
*/
var handlers = {
/**
@@ -104,7 +104,7 @@ var i18nTemplate = (function() {
process(element, dictionary);
}
} else {
- element.setAttribute(propName, value);
+ element.setAttribute(propName, /** @type {string} */(value));
}
});
}
« no previous file with comments | « ui/webui/resources/js/i18n_template.js ('k') | ui/webui/resources/js/load_time_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698