Skip to content

Page: Added warning div for deprecated options and methods #347

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions entries/page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ $.mobile.back();
</option>
<option name="contentTheme" type="String" default="null, inherited from parent" example-value='"b"' deprecated="1.4.0">
<desc>
<strong>This option is deprecated in 1.4.0 and will be removed in 1.5.0.</strong>
<div class="warning">
<p><strong>Note:</strong>This option is deprecated in 1.4.0 and will be removed in 1.5.0.</p>
</div>
<p>Sets the color scheme (swatch) for the content <code>div</code> of the <placeholder name="name" /> widget. It accepts a single letter from a-z that maps to the swatches included in your theme.</p>
<p>Possible values: swatch letter (a-z).</p>
<p>This option is also exposed as a data attribute: <code>data-content-theme="b"</code>.</p>
Expand All @@ -87,9 +89,11 @@ $.mobile.back();
</desc>
</option>
<xi:include href="../includes/widget-option-defaults.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="degradeInputs">
<option name="degradeInputs" deprecated="1.4.0">
<desc>
<p><strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <a href="/global-config/#degradeInputs"><code>$.mobile.degradeInputs</code></a> instead.</strong></p>
<div class="warning">
<p><strong>Note:</strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <a href="/global-config/#degradeInputs"><code>$.mobile.degradeInputs</code></a> instead.</p>
</div>
</desc>
</option>
<option name="dialog" type="Boolean" default="false" example-value="true">
Expand All @@ -109,15 +113,19 @@ $.mobile.back();
<xi:include href="../includes/widget-option-initSelector.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
<option name="keepNative" default="null" example-value='".do-not-enhance"' deprecated="1.4.0">
<desc>
<p><strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <code>$.mobile.keepNative</code> instead.</strong></p>
<div class="warning">
<p><strong>Note:</strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <code>$.mobile.keepNative</code> instead.</p>
</div>
<p>The value of this option is a selector that will be used in addition to the <a href="#option-keepNativeDefault">keepNativeDefault</a> option to prevent elements matching it from being enhanced.</p>
<p>This option is also exposed as a data attribute: <code>data-keep-native=".do-not-enhance</code>.</p>
</desc>
<type name="Selector" />
</option>
<option name="keepNativeDefault" default='":jqmData(role=&#39;none&#39;), :jqmData(role=&#39;nojs&#39;)"' example-value='".do-not-enhance"' deprecated="1.4.0">
<desc>
<p><strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <code>$.mobile.keepNative</code> instead.</strong></p>
<div class="warning">
<p><strong>Note:</strong>This option is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use <code>$.mobile.keepNative</code> instead.</p>
</div>
<p>The value of this option is a selector that will be used to prevent elements matching it from being enhanced.</p>
<p>This option is also exposed as a data attribute: <code>data-keep-native-default=".do-not-enhance</code>.</p>
</desc>
Expand Down Expand Up @@ -166,19 +174,25 @@ $.mobile.back();
</method>
<method name="keepNativeSelector" return="Selector" deprecated="1.4.0">
<desc>
<strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. The new <a href="/global-config/#keepNative">keepNative</a> option replaces it.</strong>
<div class="warning">
<p><strong>Note:</strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. The new <a href="/global-config/#keepNative">keepNative</a> option replaces it.</p>
</div>
<p>Returns the selector used to filter elements which are not to be enhanced.</p>
</desc>
</method>
<method name="removeContainerBackground" deprecated="1.4.0">
<desc>
<strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</strong>
<div class="warning">
<p><strong>Note:</strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</p>
</div>
<p>Removes the background swatch from the page widget's container (usually the body).</p>
</desc>
</method>
<method name="setContainerBackground" example-params='"b"' deprecated="1.4.0">
<desc>
<strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</strong>
<div class="warning">
<p><strong>Note:</strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</p>
</div>
<p>Sets a new background swatch for the page widget's container (usually the body).</p>
</desc>
<argument name="theme" type="String">
Expand Down