Skip to content

Commit 7128e03

Browse files
agcolomapsdehal
authored andcommitted
Page: Added warning div for deprecated options and methods
Closes gh-347
1 parent 916e643 commit 7128e03

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

entries/page.xml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ $.mobile.back();
7474
</option>
7575
<option name="contentTheme" type="String" default="null, inherited from parent" example-value='"b"' deprecated="1.4.0">
7676
<desc>
77-
<strong>This option is deprecated in 1.4.0 and will be removed in 1.5.0.</strong>
77+
<div class="warning">
78+
<p><strong>Note:</strong>This option is deprecated in 1.4.0 and will be removed in 1.5.0.</p>
79+
</div>
7880
<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>
7981
<p>Possible values: swatch letter (a-z).</p>
8082
<p>This option is also exposed as a data attribute: <code>data-content-theme="b"</code>.</p>
@@ -87,9 +89,11 @@ $.mobile.back();
8789
</desc>
8890
</option>
8991
<xi:include href="../includes/widget-option-defaults.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
90-
<option name="degradeInputs">
92+
<option name="degradeInputs" deprecated="1.4.0">
9193
<desc>
92-
<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>
94+
<div class="warning">
95+
<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>
96+
</div>
9397
</desc>
9498
</option>
9599
<option name="dialog" type="Boolean" default="false" example-value="true">
@@ -109,15 +113,19 @@ $.mobile.back();
109113
<xi:include href="../includes/widget-option-initSelector.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
110114
<option name="keepNative" default="null" example-value='".do-not-enhance"' deprecated="1.4.0">
111115
<desc>
112-
<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>
116+
<div class="warning">
117+
<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>
118+
</div>
113119
<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>
114120
<p>This option is also exposed as a data attribute: <code>data-keep-native=".do-not-enhance</code>.</p>
115121
</desc>
116122
<type name="Selector" />
117123
</option>
118124
<option name="keepNativeDefault" default='":jqmData(role=&#39;none&#39;), :jqmData(role=&#39;nojs&#39;)"' example-value='".do-not-enhance"' deprecated="1.4.0">
119125
<desc>
120-
<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>
126+
<div class="warning">
127+
<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>
128+
</div>
121129
<p>The value of this option is a selector that will be used to prevent elements matching it from being enhanced.</p>
122130
<p>This option is also exposed as a data attribute: <code>data-keep-native-default=".do-not-enhance</code>.</p>
123131
</desc>
@@ -166,19 +174,25 @@ $.mobile.back();
166174
</method>
167175
<method name="keepNativeSelector" return="Selector" deprecated="1.4.0">
168176
<desc>
169-
<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>
177+
<div class="warning">
178+
<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>
179+
</div>
170180
<p>Returns the selector used to filter elements which are not to be enhanced.</p>
171181
</desc>
172182
</method>
173183
<method name="removeContainerBackground" deprecated="1.4.0">
174184
<desc>
175-
<strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</strong>
185+
<div class="warning">
186+
<p><strong>Note:</strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</p>
187+
</div>
176188
<p>Removes the background swatch from the page widget's container (usually the body).</p>
177189
</desc>
178190
</method>
179191
<method name="setContainerBackground" example-params='"b"' deprecated="1.4.0">
180192
<desc>
181-
<strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</strong>
193+
<div class="warning">
194+
<p><strong>Note:</strong>This method is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0.</p>
195+
</div>
182196
<p>Sets a new background swatch for the page widget's container (usually the body).</p>
183197
</desc>
184198
<argument name="theme" type="String">

0 commit comments

Comments
 (0)