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

jquery-mobile 1.4 pagehide event Deprecated #5

Open
9kl opened this issue Nov 9, 2015 · 0 comments
Open

jquery-mobile 1.4 pagehide event Deprecated #5

9kl opened this issue Nov 9, 2015 · 0 comments

Comments

@9kl
Copy link

9kl commented Nov 9, 2015

$('div[data-role="page"]').live('pagehide', function (event, ui) {
$(event.currentTarget).remove();
});

the triggering of this event is deprecated as of jQuery Mobile 1.4.0. It will no longer be triggered in 1.6.0.
The replacement for pagehide is the pagecontainer widget's pagecontainerhide event. In jQuery Mobile 1.4.0, the two events are identical except for their name and the fact that pagecontainerhide is triggered on the pagecontainer, whereas pagehide is triggered on the page.

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

No branches or pull requests

1 participant