Commit Graph

139 Commits

Author SHA1 Message Date
Juriy Zaytsev
647d93bcc4 Use native Array.isArray when available; currently present in nightly webkit (up to 17x faster) and Opera 10.5 alpha (up to 5x faster). 2009-12-22 18:05:30 -05:00
Andrew Dupont
83b0c153d3 Add examples for String#gsub and String#sub.
(cherry picked from commit 591b25eb2604953754f08c40e9ef99791a6bb51b)
2009-12-04 18:29:40 -06:00
Andrew Dupont
e7c9072872 Merge branch 'master' of git@github.com:sstephenson/prototype 2009-12-04 18:25:23 -06:00
Juriy Zaytsev
b3fc07922c Avoid object creation and an unnecessary function call in Class#addMethods, when working around JScript DontEnum bug. 2009-11-13 15:49:22 -05:00
Juriy Zaytsev
c272e40042 Minor optimization in class module. 2009-11-12 21:17:37 -05:00
Juriy Zaytsev
f40fd5a7d6 Remove redundant ternary. 2009-11-12 21:15:52 -05:00
Juriy Zaytsev
01a229011a Avoid repeating declaration statements. 2009-11-11 17:32:19 -05:00
Andrew Dupont
5d027eb939 Merge branch 'master' of git@github.com:sstephenson/prototype 2009-10-30 02:59:14 -05:00
Tobie Langel
f9c680a9ba More nitpicking. 2009-10-21 17:58:09 +02:00
Tobie Langel
8783065b8e Cosmetic rewrite of String#startsWith and String#endsWith with performance-related comments. 2009-10-21 17:24:09 +02:00
Juriy Zaytsev
3b525f194d String#startsWith, String#endsWith performance optimization [#808 state:resolved] 2009-09-28 19:21:37 -04:00
Samuel Lebeau
f4ea4c6ef7 Rewrite String#camelize using String#replace with a replacement function [#297 state:resolved] 2009-09-26 13:36:42 -04:00
Andrew Dupont
4dedcd3b62 Merge branch 'master' of git@github.com:sstephenson/prototype 2009-09-15 18:27:56 -05:00
tjcrowder
cfc7e7a2e7 doc: Convert all subheadings to H5s throughout. 2009-09-10 17:45:11 +01:00
tjcrowder
f4314a8789 doc: Merged and updated old docs for Object.clone. 2009-09-10 17:12:38 +01:00
tjcrowder
63ea557b06 doc: Merged and updated old docs for Number#toPaddedString. 2009-09-10 16:51:36 +01:00
tjcrowder
a47d9e1c2f doc: Merged and updated old docs for Number#toColorPart. 2009-09-10 16:32:36 +01:00
tjcrowder
e6b6193124 doc: Fleshed out Number#times. 2009-09-10 16:30:19 +01:00
tjcrowder
20724ea1f9 doc: Fleshed out Number#round slightly. 2009-09-10 16:18:59 +01:00
tjcrowder
b12ec913d7 doc: Fleshed out Number#floor slightly. 2009-09-10 16:18:33 +01:00
tjcrowder
e05a089b33 doc: Fleshed out Number#ceil slightly. 2009-09-10 16:18:12 +01:00
tjcrowder
e5fa0928e8 doc: Fleshed out Number#abs slightly. 2009-09-10 16:17:35 +01:00
tjcrowder
917f10b574 doc: Modified Number preamble to leave out unnecessary reference to Ruby. 2009-09-10 16:15:21 +01:00
tjcrowder
fe5290e15e doc: Fixed missing quote in example for Hash#keys and missing arrows in example for Hash#each. 2009-09-10 15:45:05 +01:00
tjcrowder
3ee5b5ddd8 doc: Merged and updated old docs for Hash#values. 2009-09-10 15:43:29 +01:00
tjcrowder
1910e08a79 doc: Merged and updated old docs for Hash#update. 2009-09-10 15:42:04 +01:00
tjcrowder
71e07f0efa doc: Merged and updated old docs for Hash#unset. 2009-09-10 15:39:34 +01:00
tjcrowder
da402268ac doc: Merged and updated old docs for Hash#toQueryString. 2009-09-10 15:37:26 +01:00
tjcrowder
48a0f5a44c doc: Merged and updated old docs for Hash#toObject. 2009-09-10 15:18:05 +01:00
tjcrowder
64cd05dd59 doc: Fleshed out docs for Hash#toJSON. 2009-09-10 15:15:36 +01:00
tjcrowder
62a3c8fb38 doc: Merged and updated old docs for Hash#get 2009-09-10 15:12:56 +01:00
tjcrowder
ab5a19a1c1 doc: Merged old docs for Hash#merge, updated example. 2009-09-10 15:07:28 +01:00
tjcrowder
305e79e5d3 doc: Merged old docs for Hash#keys, updated example. 2009-09-10 15:00:34 +01:00
tjcrowder
e02a1cf5c6 doc: Merged old docs for Hash#get. 2009-09-10 14:57:10 +01:00
tjcrowder
00ebde59a2 doc: Merged old docs for Hash#each. 2009-09-10 14:55:12 +01:00
tjcrowder
f457097afa doc: Minor grammar update to Hash#clone. 2009-09-10 14:13:28 +01:00
tjcrowder
1bab56cfb7 doc: Corrected and new Hash docs, they were describe the 1.5 behavior of not cloning. 2009-09-10 14:04:27 +01:00
tjcrowder
4905d1777c doc: Fixed name of argument in Function#wrap docs. 2009-09-10 14:03:07 +01:00
tjcrowder
cdaaaa6421 doc: Merged old docs for Function#wrap, expanded on the signature of the wrapper. 2009-09-10 13:43:01 +01:00
tjcrowder
d441752778 doc: Merged and updated old docs for Function#methodize. 2009-09-10 13:29:27 +01:00
tjcrowder
037a47d68a Added missing semicolon in Function#delay. 2009-09-10 13:15:46 +01:00
tjcrowder
9300bd0350 doc: Fleshed out docs on Function#delay. 2009-09-10 13:15:30 +01:00
tjcrowder
d4aa3b7b4a doc: Fleshed out docs on Function#defer. 2009-09-10 13:11:30 +01:00
tjcrowder
5f02032763 doc: Fleshed out docs on Function#curry. 2009-09-10 13:06:31 +01:00
tjcrowder
c7d0bcdb6c doc: Fleshed out docs on Function#bindAsEventListener and added new example. 2009-09-10 12:53:30 +01:00
tjcrowder
853e0fbbec doc: Update Function#bind documentation, adding examples (simpler, less rambling ones than the old docs). 2009-09-10 11:33:11 +01:00
tjcrowder
29b81fda69 doc: Merged old docs for Function#argumentNames. 2009-09-10 10:31:56 +01:00
Andrew Dupont
5ccf8cbefd Change all H4s in _method_ documentation blocks to H5s. (Start with H5 when using headings in a method doc block; start with H4 when using headings in a namespace/class doc block.) 2009-09-09 23:18:45 -05:00
Tobie Langel
cf72372092 doc: Clean up the documentation of Enumerable. 2009-09-08 03:00:23 +02:00
tjcrowder
47c7e12cc6 doc: merged and updated old docs for Enumerable#zip 2009-09-08 01:22:12 +02:00