#13213 closed bug (notabug)
.live error
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
include http://code.jquery.com/jquery-latest.js[[BR]]
TypeError:$(...).live is not a function
...tp://api.jquery.com/jquery-wp-content/themes/jquery/js/modernizr.custom.2.6.2.mi....[[BR]]
Change History (15)
comment:1 Changed 10 years ago by
comment:2 follow-up: 4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Yes, .live is not in jQuery 1.9 which is being released today. Read the blog post for information.
comment:4 Changed 10 years ago by
Replying to 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!
comment:6 Changed 10 years ago by
comment:7 follow-up: 8 Changed 10 years ago by
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?
comment:8 Changed 10 years ago by
Replying to 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.
comment:9 follow-up: 10 Changed 10 years ago by
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.
comment:10 Changed 10 years ago by
Replying to 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.
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...