Jeremy Kitchen
2006-Apr-17 18:24 UTC
document.getElementsByClassName (prototype) and Element.childrenWithClassName (scriptaculous) redundancy?
Is there a reason scriptaculous provides what appears to be a redundant function? The reason I''m asking is that it only seems to be used twice throughout all of scriptaculous, and it doesn''t appear to work properly (for some reason it''s returning the actual element, rather than an array with all of the elements) If there is no reason, I''ll modify it to use document.getElementsByClassName and submit a patch. Thanks! -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob. And the lord said unto John; Come forth and receive eternal life. John came fifth and won a toaster. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Jeremy Kitchen
2006-Apr-17 18:39 UTC
Re: document.getElementsByClassName (prototype) and Element.childrenWithClassName (scriptaculous) redundancy?
On Monday 17 April 2006 11:24, Jeremy Kitchen wrote:> Is there a reason scriptaculous provides what appears to be a redundant > function? The reason I''m asking is that it only seems to be used twice > throughout all of scriptaculous, and it doesn''t appear to work properly > (for some reason it''s returning the actual element, rather than an array > with all of the elements)actually, it is working properly, the function that is calling it is simply interpreting the results incorrectly :) However, there''s still that redundancy. I''ve filed a ticket about this here: http://dev.rubyonrails.org/ticket/4766 any input would be greatly appreciated :) -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob. And the lord said unto John; Come forth and receive eternal life. John came fifth and won a toaster. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Possibly Parallel Threads
- RE: document.getElementsByClassName (prototype) andElement.childrenWithClassName (scriptaculous) redundancy?
- Effect.toggle error in 1.6.1
- generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
- [prototype] Selector class fails on selector strings with spaces
- prototype.js Event.stopObserving