On Sep 29, 3:27 am, Neil Craig <[email protected]> wrote: > In my example, if the DIVs inside the container of the widget > constantly change (added/removed), how would one use the live() method > for event delegation if one cannot use it within one's widget. I've > resorted to creating a single click event handler that inspects the > event target to determine the appropriate action.
You would do the live binding outside of your widget because it only needs to be bound once. Alternatively you could use a flag to determine if you should do the live binding on init and then only do the binding once. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" 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-ui?hl=en -~----------~----~----~----~------~----~------~--~---
