[richfaces-svn-commits] JBoss Rich Faces SVN: r6167 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Feb 19 09:28:19 EST 2008


Author: nbelaevski
Date: 2008-02-19 09:28:19 -0500 (Tue, 19 Feb 2008)
New Revision: 6167

Modified:
   trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
Log:
Richfaces.removeNode() method added

Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js	2008-02-19 14:21:16 UTC (rev 6166)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js	2008-02-19 14:28:19 UTC (rev 6167)
@@ -366,3 +366,12 @@
 
 	return n;
 };
+
+Richfaces.removeNode = function(node) {
+	if (node) {
+		var parentNode = node.parentNode;
+		if (parentNode) {
+			parentNode.removeChild(node);
+		}
+	}
+}




More information about the richfaces-svn-commits mailing list