Author: pyaschenko
Date: 2007-08-16 05:27:48 -0400 (Thu, 16 Aug 2007)
New Revision: 2285
Modified:
trunk/framework/impl/src/main/javascript/prototype/patches.js
Log:
Element.isNodeInDOMTree changed to Element.descendantOf in Element.isUninitialized
Modified: trunk/framework/impl/src/main/javascript/prototype/patches.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/patches.js 2007-08-16 00:55:58 UTC
(rev 2284)
+++ trunk/framework/impl/src/main/javascript/prototype/patches.js 2007-08-16 09:27:48 UTC
(rev 2285)
@@ -52,6 +52,9 @@
if (!element.parentNode || element.document && element.document.readyState ==
"uninitialized") {
return true;
+ } else
+ {
+ return !Element.descendantOf(element, document.documentElement);
}
return false;
Show replies by date