Jeremy Kitchen
2006-May-01 18:37 UTC
[prototype] Selector class fails on selector strings with spaces
I just ran across this bug when trying to re-create Ben Nolan''s behaviour.js with prototype and was wondering if anyone had fixed it before I went re-inventing the wheel :) Thanks! -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://ipaction.org/ -- defend your rights to fair use _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Nicholas Schlueter
2006-May-01 18:45 UTC
Re: [prototype] Selector class fails on selector strings with spaces
http://encytemedia.com/event-selectors/ On 5/1/06, Jeremy Kitchen <kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org> wrote:> I just ran across this bug when trying to re-create Ben Nolan''s behaviour.js > with prototype and was wondering if anyone had fixed it before I went > re-inventing the wheel :) > > Thanks! > > -Jeremy > > -- > Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org > > http://ipaction.org/ -- defend your rights to fair use > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > >-- DCRails.com || Making the Metrorail fun!
Jeremy Kitchen
2006-May-01 18:58 UTC
Re: [prototype] Selector class fails on selector strings with spaces
On Monday 01 May 2006 11:45, Nicholas Schlueter wrote:> http://encytemedia.com/event-selectors/hmm.. I''ll definitely take a look at this for future projects. Unfortunately, I need to maintain backward compatibility with behaviour :) I think I realized what I am doing wrong though.. $$(''#whatever .whatever'') works fine, but new Selector(''#whatever .whatever'') throws an exception. It seems that $$() is splitting up the selector into parts for whatever reason ... I''ll continue to look into it :) -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://ipaction.org/ -- defend your rights to fair use _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs