Skip to main content

Bug Tracker

Side navigation

Ticket #975: eval-scripts-firefox.patch
File eval-scripts-firefox.patch, 0.5 KB (added by aaron.heimlich@gmail, February 18, 2007 04:56AM UTC)
Index: ajax.js
===================================================================
--- ajax.js	(revision 1365)
+++ ajax.js	(working copy)
@@ -121,6 +121,11 @@
 	 * @cat Ajax
 	 */
 	evalScripts: function() {
+		if(jQuery.browser.mozilla) {
+			// Firefox eval's scripts when they get added to the DOM tree,
+			// so this isn't necessary here
+			return this;
+		}
 		return this.find("script").each(function(){
 			if ( this.src )
 				jQuery.getScript( this.src );

Download in other formats:

Original Format