Bug Tracker

Opened 11 years ago

Closed 10 years ago

#5516 closed enhancement (fixed)

Make submit, change and select events compatible with .live()

Reported by: lrbabe Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: live, bubble Cc:
Blocked by: Blocking:

Description

It was announced during jQconf that 1.4 will make it possible to use any event with live. We now have focus/blur and mouseenter/mouseleave in trunk (as well as an unreliable implementation of submit that we need to get rid of).

Justin meyer proposed an alternative implementation for submit: http://dev.jquery.com/ticket/5267 This implementation involves many changes in the event component and relies on co-opted click and keypress events. If the propagation of these event is stopped at some point, this special event will become useless.

On the other hand, it might be possible to use co-opted focusin and focusout events (of which the propagation is more reliable) to make submit, select and change compatible with live at the same time, as achieved in Greg Reimer's Reglib: Greg Reimer in Reglib: http://code.google.com/p/reglib/source/browse/trunk/reg.js#1115

I've been working on a patch but didn't had time to finish it, see http://groups.google.com/group/jquery-dev/browse_thread/thread/15a8f8012aa5017e/8d23ece870540c06

I'm filing this bug to make sure that this idea doesn't get lost in the discussion group and will go back to it asap.

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: fixed
Status: newclosed

Fixed in 1.4, I think. Open a new ticket on any specific issues that weren't addressed.

Note: See TracTickets for help on using tickets.