Author: maksimkaszynski
Date: 2008-03-25 11:51:30 -0400 (Tue, 25 Mar 2008)
New Revision: 7176
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-2747
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-03-25
15:47:53 UTC (rev 7175)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-03-25
15:51:30 UTC (rev 7176)
@@ -859,7 +859,7 @@
var within = true;
var targetElement = event.relatedTarget;
- while (targetElement.nodeType!=1) targetElement = targetElement.parentNode;
+ while (targetElement && targetElement.nodeType!=1) targetElement =
targetElement.parentNode;
var srcElement = event.target;
var layer = $(this.id);