tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1087519 - /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js
Date Fri, 01 Apr 2011 00:24:53 GMT
Author: hlship
Date: Fri Apr  1 00:24:53 2011
New Revision: 1087519

URL: http://svn.apache.org/viewvc?rev=1087519&view=rev
Log:
TAP5-1257: Javascript error with IE Prototype still in 1.7

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js?rev=1087519&r1=1087518&r2=1087519&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/scriptaculous_1_9_0/prototype.js
Fri Apr  1 00:24:53 2011
@@ -3700,7 +3700,7 @@ Element.addMethods({
     var isInline = (Element.getStyle(element, 'display') === 'inline');
     if (!isInline && element.offsetParent) return $(element.offsetParent);
 
-    while ((element = element.parentNode) && element !== document.body) {
+    while ((element = element.parentNode) && element !== document.body &&
element !== document) {
       if (Element.getStyle(element, 'position') !== 'static') {
         return isHtml(element) ? $(document.body) : $(element);
       }



Mime
View raw message