/[webpac2]/Webpacus/root/js/prototype.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/js/prototype.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 408 by dpavlin, Fri Dec 2 23:01:25 2005 UTC revision 409 by dpavlin, Mon Feb 20 17:12:22 2006 UTC
# Line 1  Line 1 
1  /*  Prototype JavaScript framework, version 1.4.0_rc4  /*  Prototype JavaScript framework, version 1.4.0
2   *  (c) 2005 Sam Stephenson <sam@conio.net>   *  (c) 2005 Sam Stephenson <sam@conio.net>
3   *   *
  *  THIS FILE IS AUTOMATICALLY GENERATED. When sending patches, please diff  
  *  against the source tree, available from the Prototype darcs repository.  
  *  
4   *  Prototype is freely distributable under the terms of an MIT-style license.   *  Prototype is freely distributable under the terms of an MIT-style license.
  *  
5   *  For details, see the Prototype web site: http://prototype.conio.net/   *  For details, see the Prototype web site: http://prototype.conio.net/
6   *   *
7  /*--------------------------------------------------------------------------*/  /*--------------------------------------------------------------------------*/
8    
9  var Prototype = {  var Prototype = {
10    Version: '1.4.0_rc4',    Version: '1.4.0',
11    ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',    ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',
12    
13    emptyFunction: function() {},    emptyFunction: function() {},
# Line 46  Object.inspect = function(object) { Line 42  Object.inspect = function(object) {
42    }    }
43  }  }
44    
45  Function.prototype.bind = function(object) {  Function.prototype.bind = function() {
46    var __method = this;    var __method = this, args = $A(arguments), object = args.shift();
47    return function() {    return function() {
48      return __method.apply(object, arguments);      return __method.apply(object, args.concat($A(arguments)));
49    }    }
50  }  }
51    
# Line 393  Object.extend(Enumerable, { Line 389  Object.extend(Enumerable, {
389    entries: Enumerable.toArray    entries: Enumerable.toArray
390  });  });
391  var $A = Array.from = function(iterable) {  var $A = Array.from = function(iterable) {
392      if (!iterable) return [];
393    if (iterable.toArray) {    if (iterable.toArray) {
394      return iterable.toArray();      return iterable.toArray();
395    } else {    } else {
# Line 456  Object.extend(Array.prototype, { Line 453  Object.extend(Array.prototype, {
453      return (inline !== false ? this : this.toArray())._reverse();      return (inline !== false ? this : this.toArray())._reverse();
454    },    },
455    
456      shift: function() {
457        var result = this[0];
458        for (var i = 0; i < this.length - 1; i++)
459          this[i] = this[i + 1];
460        this.length--;
461        return result;
462      },
463    
464    inspect: function() {    inspect: function() {
465      return '[' + this.map(Object.inspect).join(', ') + ']';      return '[' + this.map(Object.inspect).join(', ') + ']';
466    }    }
# Line 1253  Form.Element = { Line 1258  Form.Element = {
1258      var method = element.tagName.toLowerCase();      var method = element.tagName.toLowerCase();
1259      var parameter = Form.Element.Serializers[method](element);      var parameter = Form.Element.Serializers[method](element);
1260    
1261      if (parameter)      if (parameter) {
1262        return encodeURIComponent(parameter[0]) + '=' +        var key = encodeURIComponent(parameter[0]);
1263          encodeURIComponent(parameter[1]);        if (key.length == 0) return;
1264    
1265          if (parameter[1].constructor != Array)
1266            parameter[1] = [parameter[1]];
1267    
1268          return parameter[1].map(function(value) {
1269            return key + '=' + encodeURIComponent(value);
1270          }).join('&');
1271        }
1272    },    },
1273    
1274    getValue: function(element) {    getValue: function(element) {
# Line 1765  if (/Konqueror|Safari|KHTML/.test(naviga Line 1778  if (/Konqueror|Safari|KHTML/.test(naviga
1778    
1779      return [valueL, valueT];      return [valueL, valueT];
1780    }    }
1781  }  }

Legend:
Removed from v.408  
changed lines
  Added in v.409

  ViewVC Help
Powered by ViewVC 1.1.26