You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/04/01 02:24:53 UTC

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

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);
       }