tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy...@apache.org
Subject svn commit: r491604 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
Date Mon, 01 Jan 2007 18:07:26 GMT
Author: andyhot
Date: Mon Jan  1 10:07:26 2007
New Revision: 491604

URL: http://svn.apache.org/viewvc?view=rev&rev=491604
Log:
TAPESTRY-1220: corrected arguments

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js?view=diff&rev=491604&r1=491603&r2=491604
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Mon Jan  1 10:07:26
2007
@@ -229,13 +229,13 @@
 	loadScriptContent:function(element, async){
 		if (typeof async == "undefined") { async = true; }
 		
-		var text=tapestry.html.getContentAsString(element);
-		
 		if (tapestry.scriptInFlight) {
 			dojo.log.debug("loadScriptContent(): scriptInFlight is true, sleeping");
-			setTimeout(function() { tapestry.loadScriptContent(text, async);}, 5);
+			setTimeout(function() { tapestry.loadScriptContent(element, async);}, 5);
 			return;
-		}
+		}                
+                
+		var text=tapestry.html.getContentAsString(element);
 		
 		var match = new RegExp(tapestry.ScriptFragment, 'img');
 	    var response = text.replace(match, '');



Mime
View raw message