Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

check the domCache option before rebinding the page remove on select menu #2289

Merged
merged 2 commits into from
Aug 17, 2011

Conversation

SamuelKC
Copy link
Contributor

Migration of #2222 in the new jquery.mobile.forms.select.custom.js

When closing a fullpage select menu we need to check the domCache option before rebinding the page remove handler. If domCache is true the page remove wasn't bound in the first place, so binding it on menu close will cause the removing of a page that mustn't be removed.

Also added a test case in select_cached.js (I'm not familiar with qunit so it might need a review).

johnbender added a commit that referenced this pull request Aug 17, 2011
check the domCache option before rebinding the page remove on select menu
@johnbender johnbender merged commit 866b1b0 into jquery-archive:master Aug 17, 2011
@johnbender
Copy link
Contributor

Thanks Samuel!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants