[richfaces-svn-commits] JBoss Rich Faces SVN: r5213 - in trunk/ui: menu-components/src/main/resources/org/richfaces/renderkit/html/scripts and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Jan 9 08:31:01 EST 2008


Author: sergeyhalipov
Date: 2008-01-09 08:31:01 -0500 (Wed, 09 Jan 2008)
New Revision: 5213

Modified:
   trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/scripts/data-table.js
   trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-1456

Modified: trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/scripts/data-table.js
===================================================================
--- trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/scripts/data-table.js	2008-01-09 12:50:32 UTC (rev 5212)
+++ trunk/ui/dataTable/src/main/resources/org/richfaces/renderkit/html/scripts/data-table.js	2008-01-09 13:31:01 UTC (rev 5213)
@@ -1,4 +1,6 @@
-if (!window.RichFaces) var RichFaces = {};
+if (!window.RichFaces) {
+	window.RichFaces = {};
+}
 
 
 

Modified: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
--- trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js	2008-01-09 12:50:32 UTC (rev 5212)
+++ trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js	2008-01-09 13:31:01 UTC (rev 5213)
@@ -1122,7 +1122,7 @@
 	refresh:function(){
 		/*LOG.a4j_debug("rebinding " + $H(this).inspect());*/
 		var obj = $(this.objectId);
-		if(obj){
+		if (obj && obj.tagName) {
 			Event.stopObserving(obj, this.eventname, this.handler);
 			Event.observe(obj, this.eventname, this.handler);
 			return true;




More information about the richfaces-svn-commits mailing list