Author: nbelaevski
Date: 2008-03-25 20:16:39 -0400 (Tue, 25 Mar 2008)
New Revision: 7238
Modified:
trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js
Log:
http://jira.jboss.com/jira/browse/RF-2753
Modified: trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js 2008-03-25
20:05:53 UTC (rev 7237)
+++ trunk/framework/impl/src/main/javascript/prototype/prototype-1.6.0.2.js 2008-03-26
00:16:39 UTC (rev 7238)
@@ -2084,7 +2084,8 @@
if (element.offsetParent) return $(element.offsetParent);
if (element == document.body) return $(element);
- while ((element = element.parentNode) && element != document.body)
+ while ((element = element.parentNode) && element != document.body
+ && Object.isElement(element)/* changed by Nick -
http://dev.rubyonrails.org/ticket/11007 */)
if (Element.getStyle(element, 'position') != 'static')
return $(element);