This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
property should not be defined in $.mobile.
- Loading branch information
6798792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We originally added the ability to designate native selects on a per select basis or on a global bases (the later case is removed above), the above obviously disables the global. Should I remove it from the docs as well?
6798792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey John,
It can still be set globally, but via the selectmenu plugin's options rather than in the $.mobile hash. You can check out last night's commit, but basically I removed the custom data- additions because we have automated option-to-data-attr support from the widget factory, so a single option should be good enough for both. I updated the docs and unit tests with the changes: http://jquerymobile.com/test/#docs/forms/forms-selects.html
Of course, it's not nearly as concise to set programmatically now, but it's the same as any plugin option this way.
Thanks for chiming in :)
6798792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scott
Brilliant! Altering the option directly on the prototype makes perfect sense, thanks for clarifying.
6798792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scott,
Is the mobile select widget defined when mobileinit is triggered in core? We had to move page before core for this reason.
6798792
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposed solution:
johnbender/jquery-mobile@f944333...config
Also linked in issue 966
https://github.com/jquery/jquery-mobile/issues/issue/966/#comment_738413