Skip to main content

Bug Tracker

Side navigation

#12952 closed feature (notabug)

Opened November 24, 2012 07:58PM UTC

Closed November 24, 2012 08:01PM UTC

Last modified November 25, 2012 05:18AM UTC

Suggestion re live()

Reported by: hhurford Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

When an event handler is applied to an id..

why not make live() the default behaviour?

Rationale:

If the object exists, apply the handler.

If the object appears later, apply the handler

Why must I code it with live() to handle the second case?

Attachments (0)
Change History (2)

Changed November 24, 2012 08:01PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

The best place to learn about delegated events and their drawbacks would be in the .live documentation at http://api.jquery.com/live/ and http://api.jquery.com/on/ , then ask for help on the forum.

Changed November 25, 2012 05:18AM UTC by hhurford@llamazone.com comment:2

Replying to [comment:1 dmethvin]:

The best place to learn about delegated events and their drawbacks would be in the .live documentation at http://api.jquery.com/live/ and http://api.jquery.com/on/ , then ask for help on the forum.

Thanks to dmethvin for the reply.

My use of live() came from a Sitepoint book, I did not know that it was an obsolete function.

I will re-code using on()