List Info

Thread: prototype.js




prototype.js
user name
2006-06-14 20:45:00
Update of
/var/cvs/Geeklog-2.x/Geeklog-2.x/public_html/javascript/scri
ptaculous-js/lib
In directory
iowaoutdoors:/tmp/cvs-serv26348/public_html/javascript/scrip
taculous-js/lib

Added Files:
	prototype.js 
Log Message:


--- NEW FILE: prototype.js ---
/*  Prototype JavaScript framework, version 1.5.0_rc0
 *  (c) 2005 Sam Stephenson <samconio.net>
 *
 *  Prototype is freely distributable under the terms of an
MIT-style license.
 *  For details, see the Prototype web site: http://prototype.conio.ne
t/
 *
/*----------------------------------------------------------
----------------*/

var Prototype = {
  Version: '1.5.0_rc0',
  ScriptFragment:
'(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)
',

  emptyFunction: function() {},
  K: function(x) {return x}
}

var Class = {
  create: function() {
    return function() {
[...1967 lines suppressed...]
}

// Safari returns margins on body which is incorrect if the
child is absolutely
// positioned.  For performance reasons, redefine
Position.cumulativeOffset for
// KHTML/WebKit only.
if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
  Position.cumulativeOffset = function(element) {
    var valueT = 0, valueL = 0;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;
      if (element.offsetParent == document.body)
        if (Element.getStyle(element, 'position') ==
'absolute') break;

      element = element.offsetParent;
    } while (element);

    return [valueL, valueT];
  }
}
_______________________________________________
geeklog2-cvs mailing list
geeklog2-cvslists.geeklog.net
http://lists.geeklog.net/mailman/listinfo/geeklog2-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )