You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2006/07/29 17:33:05 UTC

svn commit: r426818 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Author: jkuhnert
Date: Sat Jul 29 08:33:05 2006
New Revision: 426818

URL: http://svn.apache.org/viewvc?rev=426818&view=rev
Log:
Tweaks made while playing with new aptana eclipse plugin. (not worth trying, JSEclipse is still king)

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?rev=426818&r1=426817&r2=426818&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Sat Jul 29 08:33:05 2006
@@ -128,7 +128,7 @@
 	loadContent:function(id, node, element){
     	if (element.childNodes && element.childNodes.length > 0) {
         	for (var i = 0; i < element.childNodes.length; i++) {
-            	if (element.childNodes[i].nodeType != 1) continue;
+            	if (element.childNodes[i].nodeType != 1) { continue; }
 				
             	var nodeId = element.childNodes[i].getAttribute("id");
             	if (nodeId && nodeId == id) {
@@ -142,7 +142,7 @@
 	},
 	
 	loadScriptContent:function(element, async){
-		if (typeof async == "undefined") async = true;
+		if (typeof async == "undefined") { async = true; }
 		
 		var text=tapestry.html.getContentAsString(element);
 		
@@ -156,7 +156,7 @@
 	    var response = text.replace(match, '');
 	    var scripts = text.match(match);
 		
-		if (!scripts) return;
+		if (!scripts) { return; }
 		
         match = new RegExp(tapestry.ScriptFragment, 'im');
         if (async) {