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() {}, |
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 |
|
|
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 { |
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 |
} |
} |
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) { |
1778 |
|
|
1779 |
return [valueL, valueT]; |
return [valueL, valueT]; |
1780 |
} |
} |
1781 |
} |
} |