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

Unified Diff: chrome/browser/resources/print_preview/print_preview_animations.js

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: Fix svg Created 3 years, 6 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
Index: chrome/browser/resources/print_preview/print_preview_animations.js
diff --git a/chrome/browser/resources/print_preview/print_preview_animations.js b/chrome/browser/resources/print_preview/print_preview_animations.js
index d931694e1ceb4b9adaba532f5426b08358e12aa8..8a8e831c1980163350a1780234ecb060e7ba742b 100644
--- a/chrome/browser/resources/print_preview/print_preview_animations.js
+++ b/chrome/browser/resources/print_preview/print_preview_animations.js
@@ -110,7 +110,7 @@ function onFadeInAnimationEnd(event) {
*/
function fadeInAnimationCleanup(element) {
if (element.style.animationName) {
- var animEl = document.getElementById(element.style.animationName);
+ var animEl = $(element.style.animationName);
if (animEl)
animEl.parentNode.removeChild(animEl);
element.style.animationName = '';
« no previous file with comments | « chrome/browser/resources/instant/instant.js ('k') | chrome/browser/resources/print_preview/settings/other_options_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698