Author: pyaschenko
Date: 2008-04-16 09:19:45 -0400 (Wed, 16 Apr 2008)
New Revision: 7872
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
http://jira.jboss.com/jira/browse/RF-3071
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-04-16
12:43:36 UTC (rev 7871)
+++
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2008-04-16
13:19:45 UTC (rev 7872)
@@ -1203,7 +1203,7 @@
Event.extend(event);
var targetElement = event.relatedTarget;
- while (targetElement.nodeType!=1) targetElement = targetElement.parentNode;
+ while (targetElement && targetElement.nodeType!=1) targetElement =
targetElement.parentNode;
if (targetElement) {
within = targetElement == element ||