Juriy Zaytsev
|
56fb5b84a1
|
No need to use expensive try/catch when check for element being orphaned suffices.
|
2009-12-23 01:54:19 -05:00 |
|
Tobie Langel
|
a7f05ee8b5
|
doc: Fix a typo in Prototype.Selector.find which prevented proper documentation parsing. Add a default value for the index argument.
|
2009-12-23 05:52:51 +01:00 |
|
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
|
c028935279
|
Add note about mouseenter/leave support to docs.
(cherry picked from commit 1c4c2005341ef587dca7eacc8d347367e3eb7ef7)
|
2009-12-04 18:28:31 -06:00 |
|
Andrew Dupont
|
0dd600974c
|
Add documentation for event key codes.
(cherry picked from commit 93bd2048e2c106ecc309292be358ef398df05984)
|
2009-12-04 18:27:49 -06:00 |
|
Andrew Dupont
|
e7c9072872
|
Merge branch 'master' of git@github.com:sstephenson/prototype
|
2009-12-04 18:25:23 -06:00 |
|
Sam Stephenson
|
fa0dce2488
|
Revert Event#findElement changes from 6bb309a
|
2009-12-03 00:31:35 -06:00 |
|
Sam Stephenson
|
6bb309afb7
|
Selector API change: replace Prototype.Selector.filter with Prototype.Selector.find, which works like the old Selector.findElement.
|
2009-12-02 15:57:58 -06:00 |
|
Sam Stephenson
|
797c231bfa
|
Move ext/sizzle into src so it's available in the default Sprockets load path.
|
2009-12-02 14:18:01 -06:00 |
|
Tobie Langel
|
6b00f24963
|
Merge branch 'selector_agnostic'
Conflicts:
src/dom/selector.js
|
2009-11-30 11:32:09 +01: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
|
18f2ac65c3
|
Optimize Element#immediateDescendants.
|
2009-11-13 14:28:27 -05:00 |
|
Juriy Zaytsev
|
82c9b9c783
|
Remove unnecessary function object creation and Number#times in Element._getContentFromAnonymousElement .
|
2009-11-13 14:21:14 -05:00 |
|
Juriy Zaytsev
|
9ef3f8d2ed
|
Eliminate runtime forking and long method lookup in Element.hasAttribute .
|
2009-11-13 12:27:10 -05:00 |
|
Juriy Zaytsev
|
829800834d
|
Do not create translations object every time method is called.
|
2009-11-12 21:21:42 -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
|
1f167f8754
|
if should be followed by space.
|
2009-11-11 17:43:25 -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
|
24569d1d98
|
Deprecate the Selector API.
|
2009-10-25 16:13:11 +01:00 |
|
Tobie Langel
|
f6f6955a71
|
Marked old Selector API as deprecated.
|
2009-10-23 12:58:10 +02:00 |
|
Tobie Langel
|
b0159bdba7
|
Document Prototype.Selector API.
|
2009-10-23 12:53:03 +02:00 |
|
Tobie Langel
|
af89847a4f
|
Make Event.stopObserving return element in all cases. [#810 state:resolved]
|
2009-10-23 07:51:50 +02:00 |
|
Tobie Langel
|
bf8e404805
|
Make Event.stopObserving return element in all cases. [#810 state:resolved]
|
2009-10-23 07:49:57 +02:00 |
|
Tobie Langel
|
7762e002cb
|
Reorder repository to allow for custom selector engines to be included instead of Sizzle (the current default). Selector engines belong in the vendor directory and must have a selector_engine.js file. To build a Prototype with your engine of choice just spepcify it at build time using the SELECTOR_ENGINE option. For example, to build a version with NSMatcher: rake dist SELECTOR_ENGINE=nwmatcher.
|
2009-10-23 05:49:40 +02:00 |
|
Tobie Langel
|
3e19f959a2
|
Fix Selector#findElements.
|
2009-10-23 04:42:05 +02:00 |
|
Tobie Langel
|
da3e1e361e
|
Clean-up.
|
2009-10-23 04:10:30 +02:00 |
|
Tobie Langel
|
2d13d45dc8
|
Remove dependencies to Selector in favor of Prototype.Selector throughout the library.
|
2009-10-23 01:43:48 +02:00 |
|
Tobie Langel
|
caf66395d5
|
Add Prototype.Selector object with select, match and filter methods as a wraper around Sizzle.Redefine the whole of Selector API in terms of Prototype.Selector.
|
2009-10-23 01:17:53 +02:00 |
|
Yaffle
|
2d3e423230
|
Add missing semicolons. [#837 state:resolved]
|
2009-10-21 18:25:27 +02: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 |
|
Tobie Langel
|
35ed99ba2e
|
doc: nitpicking.
|
2009-10-21 17:00:17 +02:00 |
|
Sam Stephenson
|
4d042a9fa0
|
Match each element individually in Selector.findElement since Sizzle.matches does not preserve order
|
2009-10-10 13:24:04 -05:00 |
|
tjcrowder
|
859197ca8b
|
doc: Merged/updated old docs for Element.descendants.
|
2009-10-09 17:20:39 +01:00 |
|
tjcrowder
|
d10aad7bfa
|
doc: Merged/updated old docs for Element.descendantOf.
|
2009-10-09 17:15:15 +01:00 |
|
tjcrowder
|
adf80ad1b3
|
doc: Merged/updated old docs for Element.cumulativeScrollOffset, clarified units, added example.
|
2009-10-09 17:10:13 +01:00 |
|
tjcrowder
|
f1f6fca60b
|
doc: Clarified units in Element.cumulativeOffset and added example.
|
2009-10-09 17:01:40 +01:00 |
|
tjcrowder
|
c448b38f7b
|
doc: Merged/updated old docs for Element.clonePosition.
|
2009-10-09 16:55:42 +01:00 |
|
tjcrowder
|
9ce1ea06b5
|
doc: Merged/updated old docs for Element.cleanWhitespace.
|
2009-10-09 16:10:44 +01:00 |
|
tjcrowder
|
1e29e3c6c9
|
doc: Merged/updated old docs for Element.classNames, mostly by marking it deprecated.
|
2009-10-09 15:49:54 +01:00 |
|
tjcrowder
|
892eb9d6b3
|
doc: Merged/updated old docs for Element.childElements / Element.immediateDescendants. Made immediateDescendants an alias of childElements rather than vice-versa as the latter is depreceated.
|
2009-10-09 15:34:39 +01:00 |
|
tjcrowder
|
e3c89c08c6
|
doc: Merged/updated old docs for Element.ancestors.
|
2009-10-09 14:48:47 +01:00 |
|
tjcrowder
|
402a2d408e
|
doc: Merged/updated old docs for Element.adjacent
|
2009-10-09 14:31:02 +01:00 |
|
tjcrowder
|
77832408bd
|
doc: Merged/updated old docs for Element.addClassName
|
2009-10-09 14:14:14 +01:00 |
|
tjcrowder
|
7df62ce864
|
doc: Merged/updated old docs for Element.extend
|
2009-10-09 13:56:39 +01:00 |
|
tjcrowder
|
d6d3ab1fef
|
doc: Merged/updated old docs for Element constructor
|
2009-10-09 13:36:14 +01:00 |
|
tjcrowder
|
7d073ad56a
|
doc: Merged/updated old docs for Element overview
|
2009-10-09 13:35:38 +01:00 |
|