Skip to main content

Bug Tracker

Side navigation

#13213 closed bug (notabug)

Opened January 15, 2013 07:03AM UTC

Closed January 15, 2013 12:19PM UTC

Last modified March 26, 2013 04:18PM UTC

.live error

Reported by: gafani@nate.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

include TypeError:$(...).live is not a function

...tp://api.jquery.com/jquery-wp-content/themes/jquery/js/modernizr.custom.2.6.2.mi....

Attachments (0)
Change History (15)

Changed January 15, 2013 11:55AM UTC by manuel.lopez@telecontrol.com.br comment:1

Confirmed here, any page loading version 1.9.0 fires this error. Downgrading to 1.8.3 solves the problem. Should be an urgent issue...

Changed January 15, 2013 12:19PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

Yes, .live is not in jQuery 1.9 which is being released today. Read the blog post for information.

Changed January 15, 2013 12:32PM UTC by dmethvin comment:3

#13216 is a duplicate of this ticket.

Changed January 15, 2013 02:55PM UTC by anonymous comment:4

Replying to [comment:2 dmethvin]:

Yes, .live is not in jQuery 1.9 which is being released today. Read the blog post for information.

can't find any blog post that has further information. pls post a link!

Changed January 15, 2013 03:08PM UTC by dmethvin comment:5

Changed January 15, 2013 03:13PM UTC by anonymous comment:6

Replying to [comment:5 dmethvin]:

um, http://blog.jquery.com

m( that link doesn't say anything about why .live() has been removed

Changed January 15, 2013 03:17PM UTC by dmethvin comment:7

Did you read the upgrade guide that is linked several times in that post, and also several times in the beta announcements that came before it?

Changed January 15, 2013 03:31PM UTC by anonymous comment:8

Replying to [comment:7 dmethvin]:

Did you read the upgrade guide that is linked several times in that post, and also several times in the beta announcements that came before it?

i did, but it only says that 1.9 no longer attempts to maintain .live() but not why.

Changed January 15, 2013 03:41PM UTC by dmethvin comment:9

As of jQuery 1.7, the .live() method is deprecated. -- http://api.jquery.com/live/

jQuery 1.7 was released in November 2011, so there's been more than a year of notice. As to why, just read that documentation and you'll see all the disadvantages of .live().

If you are not prepared to make changes in the site's code, either don't upgrade to 1.9.0 or use the jQuery Migrate plugin mentioned in the upgrade guide.

Changed January 15, 2013 04:02PM UTC by anonymous comment:10

Replying to [comment:9 dmethvin]:

> As of jQuery 1.7, the .live() method is deprecated. -- http://api.jquery.com/live/ jQuery 1.7 was released in November 2011, so there's been more than a year of notice. As to why, just read that documentation and you'll see all the disadvantages of .live(). If you are not prepared to make changes in the site's code, either don't upgrade to 1.9.0 or use the jQuery Migrate plugin mentioned in the upgrade guide.

ok, that helped. thx.

after looking for the downsides, i found this site

http://www.jquery4u.com/jquery-functions/on-vs-live-review/

which told me everything i wanted to know - including which alternative to use.

Changed January 15, 2013 08:51PM UTC by mikesherov comment:11

#13220 is a duplicate of this ticket.

Changed March 26, 2013 04:16PM UTC by rwaldron comment:12

#13668 is a duplicate of this ticket.

Changed March 26, 2013 04:17PM UTC by rwaldron comment:13

#13301 is a duplicate of this ticket.

Changed March 26, 2013 04:18PM UTC by rwaldron comment:14

#13266 is a duplicate of this ticket.

Changed March 26, 2013 04:18PM UTC by rwaldron comment:15

#13257 is a duplicate of this ticket.