Justin - If I'm understanding you correctly you're concerned that stopPropagation doesn't work with live events - that is correct. We have a patch that we're working on to, potentially, provide a fix for this - we hope to land it soon!
--John On Sun, Jan 25, 2009 at 11:13 PM, Justin Meyer <[email protected]> wrote: > > So, I've started the process of converting to jQuery. But, I think > there is a snag. I noticed that you can't cancel events. Is this on > the horizon? In JMVC, I collect all the elements that respond to the > event through delegation and order them. I dispatch each callback, > but if the event's "kill" function is called, it will not dispatch to > any other events. > > I've found this ability necessary in many projects. > > Also, will it be possible to delegate from other elements? > > $(myelement).live("a.delete") > > This is important once you start to get multiple instances of the same > widget on the page. > > Thanks! > > > > On Dec 24 2008, 7:28 am, "Dan G. Switzer, II" > <[email protected]> wrote: >> Justin, >> >> > I listen for click instead of change. I check if it is on a SELECT >> > element. If it is, I check to see if its value has changed after each >> > click. I don't think using capture instead of bubbling will help. >> >> Just be aware that you're also need to then check for keypress as >> well--for those who are using the keyboard for data entry. >> >> -Dan > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
