Initial Revision
[ohcount] / test / expected_dir / js1.js / javascript / comment
1 /*  Prototype JavaScript framework, version 1.4.0
2 *  (c) 2005 Sam Stephenson <sam@conio.net>
3 *
4 *  Prototype is freely distributable under the terms of an MIT-style license.
5 *  For details, see the Prototype web site: http://prototype.conio.net/
6 *
7 /*--------------------------------------------------------------------------*/
8 /*--------------------------------------------------------------------------*/
9 /*--------------------------------------------------------------------------*/
10 /* Force "Connection: close" for Mozilla browsers to work around
11 * a bug where XMLHttpReqeuest sends an incorrect Content-length
12 * header. See Mozilla Bugzilla #246651.
13 */
14 /* Avoid memory leak in MSIE: clean up the oncomplete event handler */
15 /*--------------------------------------------------------------------------*/
16 // removes whitespace-only text node children
17 // All *Width and *Height properties give 0 on elements with display none,
18 // so enable the element temporarily
19 // Opera returns the offset relative to the positioning context, when an
20 // element is position relative but top and left have not been defined
21 /*--------------------------------------------------------------------------*/
22 /*--------------------------------------------------------------------------*/
23 /*--------------------------------------------------------------------------*/
24 /*--------------------------------------------------------------------------*/
25 /*--------------------------------------------------------------------------*/
26 /*--------------------------------------------------------------------------*/
27 // find the first node with the given tagName, starting from the
28 // node the event was triggered on; traverses the DOM upwards
29 /* prevent memory leaks in IE */
30 // set to true if needed, warning: firefox performance problems
31 // NOT neeeded for page scrolling, only if draggable contained in
32 // scrollable elements
33 // must be called before calling withinIncludingScrolloffset, every time the
34 // page is scrolled
35 // caches x/y coordinate pair to use with overlap
36 // within must be called directly before
37 // Safari fix
38 // find page position of source
39 // find coordinate system to use
40 // delta [0,0] will do fine with position: fixed elements,
41 // position:absolute needs offsetParent deltas
42 // correct by body offsets (fixes Safari)
43 // set position
44 // Safari returns margins on body which is incorrect if the child is absolutely
45 // positioned.  For performance reasons, redefine Position.cumulativeOffset for
46 // KHTML/WebKit only.