[Prototype-core] Re: Multi-event observer

2009-05-28 Thread kangax
On May 27, 8:37 pm, Luisgo lgo...@gmail.com wrote: Hi all... I was about to submit a ticket (enhancement) but maybe this has come up before so I ask here... what do you think about being able to pass more than one event to 'observe' for cases where one may want the same behavior to run for

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Tobie Langel
Hi, You'll need to store the handler so you can remove it too, and provide an adequate API for this. Best, Tobie On May 28, 7:49 am, Luisgo lgo...@gmail.com wrote: So... here's a first pass. I forked the project committed the changes to my fork and sent a pull request to sstephenson for

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Luisgo
Cool. Sorry for the questions but can you point me to an example of storing a handler for removal and removing it and an explanation of what you mean by adequate API? I'll work on it, just need a little guidance. Thanks! On May 28, 12:10 am, Tobie Langel tobie.lan...@gmail.com wrote: Hi,

[Prototype-core] Re: Multi-event observer

2009-05-28 Thread artemy tregubenko
On Thu, 28 May 2009 10:40:33 +0400, kangax kan...@gmail.com wrote: On May 27, 8:37 pm, Luisgo lgo...@gmail.com wrote: Hi all... I was about to submit a ticket (enhancement) but maybe this has come up before so I ask here... what do you think about being able to pass more than one event to

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Radoslav Stankov
In Prototype it will be Event.delegate - https://prototype.lighthouseapp.com/projects/8886/tickets/435-eventdelegate-and-elementmethodsdelegate I have been using for a while now and I it was working really well for 4-5 projects now You can use Event.delegate from here:

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Radoslav Stankov
p.p. In several day I will make Event.delegate to be able to watch for focus / blur / submit events ( and probably will try to make a good patch for Prototype.js but the testing of this thing is really hard for me ) --~--~-~--~~~---~--~~ You received this message

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Simon Charette
I can help providing a cross platform test environement if you provide test cases. 2009/5/28 Radoslav Stankov rstan...@gmail.com p.p. In several day I will make Event.delegate to be able to watch for focus / blur / submit events ( and probably will try to make a good patch for Prototype.js

[Prototype-core] Re: Porting JQuery's .live extension to prototype.

2009-05-28 Thread Radoslav Stankov
10x I'm overloaded with work in the next couple of weeks, but maybe in Sunday will have time to work on better tests on Event.delegate + adding support for focus/blur --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups