Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to work with jQuery 1.9 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sabberworm
Copy link

In jQuery 1.9, the .live function has been removed and the .selector property has been deprecated.

This commit switches jquery.popover.js to using .on internally, replacing both .live as well as .bind. This means that jQuery 1.7 is required.

Up to and including jQuery 1.9, the live setting is still supported and works as it did before.
The recommended way to use it, however, has changed to

$(document).popover({live: '.selector'})

which works in all versions of jQuery starting with 1.7 up to 2.0 and possibly beyond.

In jQuery 1.9, the `.live` function has been removed and the `.selector` property has been deprecated.
We’re now using `.on` internally, replacing both `.live` as well as `.bind`. This means that jQuery 1.7 is required.

Up to and including jQuery 1.9, the live setting is still supported and works as it did before.
The recommended way to use it, however, has changed to

    $(document).popover({live: '.selector'})

which works in all versions of jQuery starting with 1.7 up to 2.0 and possibly beyond.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant