Skip to main content

Bug Tracker

Side navigation

Ticket #2705: core.js.patch


File core.js.patch, 0.6 KB (added by hlb, April 17, 2008 03:53PM UTC)
=== core.js
==================================================================
--- core.js	(revision 31515)
+++ core.js	(local)
@@ -651,7 +651,14 @@
 				script.appendChild( document.createTextNode( data ) );
 
 			head.appendChild( script );
-			head.removeChild( script );
+            try {
+                head.removeChild( script );
+            } catch ( error ) {
+                setTimeout( function() {
+                    var head = document.getElementsByTagName("head")[0] || document.documentElement;
+                    head.removeChild( script );
+                }, 0);
+            }
 		}
 	},

Download in other formats:

Original Format