Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.preload.js

Issue 4865772761382912: Issue 194 - Fixed: Removing elements from DOM can lead to JavaScript errors on page (Closed)
Patch Set: Created March 27, 2014, 11:41 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -93,7 +93,7 @@
if (tag == "frame")
target.style.setProperty("visibility", "hidden", "!important");
else
- target.parentNode.removeChild(target);
+ target.style.setProperty("display", "none", "!important");
}
}
);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld