Skip to content

Commit 39d564e

Browse files
authored
All: Remove runnable examples for removed APIs; mark them as removed
Closes gh-1292
1 parent 63d54fa commit 39d564e

11 files changed

+11
-124
lines changed

entries/jQuery.Deferred.getStackHook.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ jQuery.Deferred.getStackHook = function() {
2727
<category slug="deferred-object"/>
2828
<category slug="version/3.0"/>
2929
<category slug="deprecated/deprecated-3.7"/>
30+
<category slug="removed"/>
3031
</entry>

entries/jQuery.fx.interval.xml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,9 @@
1212
<p>On browsers that do not support <code>requestAnimationFrame</code>, this property can be changed to adjust the interval at which animations will run. The default is 13 milliseconds.</p>
1313
<p>Since jQuery uses one global interval, no animation should be running or all animations should stop for the change of this property to take effect.</p>
1414
</longdesc>
15-
<example>
16-
<desc>Cause all animations to run with less frames.</desc>
17-
<code><![CDATA[
18-
jQuery.fx.interval = 100;
19-
$( "input" ).on( "click", function() {
20-
$( "div" ).toggle( 3000 );
21-
});
22-
]]></code>
23-
<css><![CDATA[
24-
div {
25-
width: 50px;
26-
height: 30px;
27-
margin: 5px;
28-
float: left;
29-
background: green;
30-
}
31-
]]></css>
32-
<html><![CDATA[
33-
<p><input type="button" value="Run"></p>
34-
<div></div>
35-
]]></html>
36-
</example>
3715
<category slug="effects/custom-effects"/>
3816
<category slug="properties/global-jquery-object-properties"/>
3917
<category slug="version/1.4.3"/>
4018
<category slug="deprecated/deprecated-3.0"/>
19+
<category slug="removed"/>
4120
</entry>

entries/jQuery.isArray.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,8 @@
1414
</div>
1515
<p><code>$.isArray()</code> returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object).</p>
1616
</longdesc>
17-
<example>
18-
<desc>Finds out if the parameter is an array.</desc>
19-
<code><![CDATA[
20-
$( "b" ).append( "" + $.isArray([]) );
21-
]]></code>
22-
<html><![CDATA[
23-
Is [] an Array? <b></b>
24-
]]></html>
25-
</example>
2617
<category slug="utilities"/>
2718
<category slug="version/1.3"/>
2819
<category slug="deprecated/deprecated-3.2"/>
20+
<category slug="removed"/>
2921
</entry>

entries/jQuery.isFunction.xml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,6 @@
1414
</div>
1515
<p><strong>Note:</strong> As of jQuery 1.3, functions provided by the browser like <code>alert()</code> and DOM element methods like <code>getAttribute()</code> are not guaranteed to be detected as functions in browsers such as Internet Explorer.</p>
1616
</longdesc>
17-
<example>
18-
<desc>Test a few parameter examples.</desc>
19-
<code><![CDATA[
20-
function stub() {}
21-
var objs = [
22-
function() {},
23-
{ x:15, y:20 },
24-
null,
25-
stub,
26-
"function"
27-
];
28-
29-
jQuery.each( objs, function( i ) {
30-
var isFunc = jQuery.isFunction( objs[ i ]);
31-
$( "span" ).eq( i ).text( isFunc );
32-
});
33-
]]></code>
34-
<css><![CDATA[
35-
div {
36-
color: blue;
37-
margin: 2px;
38-
font-size: 14px;
39-
}
40-
span {
41-
color: red;
42-
}
43-
]]></css>
44-
<html><![CDATA[
45-
<div>jQuery.isFunction( objs[ 0 ] ) = <span></span></div>
46-
<div>jQuery.isFunction( objs[ 1 ] ) = <span></span></div>
47-
<div>jQuery.isFunction( objs[ 2 ] ) = <span></span></div>
48-
<div>jQuery.isFunction( objs[ 3 ] ) = <span></span></div>
49-
<div>jQuery.isFunction( objs[ 4 ] ) = <span></span></div>
50-
]]></html>
51-
</example>
5217
<example>
5318
<desc>Finds out if the parameter is a function.</desc>
5419
<code><![CDATA[
@@ -61,4 +26,5 @@ true
6126
<category slug="utilities"/>
6227
<category slug="version/1.2"/>
6328
<category slug="deprecated/deprecated-3.3"/>
29+
<category slug="removed"/>
6430
</entry>

entries/jQuery.isNumeric.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ $.isNumeric( undefined )
4343
<category slug="utilities"/>
4444
<category slug="version/1.7"/>
4545
<category slug="deprecated/deprecated-3.3"/>
46+
<category slug="removed"/>
4647
</entry>

entries/jQuery.isWindow.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@
1717
</div>
1818
<p>This is used in a number of places in jQuery to determine if we're operating against a browser window (such as the current window or an iframe).</p>
1919
</longdesc>
20-
<example>
21-
<desc>Finds out if the parameter is a window.</desc>
22-
<code><![CDATA[
23-
$( "b" ).append( "" + $.isWindow( window ) );
24-
]]></code>
25-
<html><![CDATA[
26-
Is 'window' a window? <b></b>
27-
]]></html>
28-
</example>
2920
<category slug="utilities"/>
3021
<category slug="version/1.4.3"/>
3122
<category slug="deprecated/deprecated-3.3"/>
23+
<category slug="removed"/>
3224
</entry>

entries/jQuery.now.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
<category slug="utilities"/>
1515
<category slug="version/1.4.3"/>
1616
<category slug="deprecated/deprecated-3.3"/>
17+
<category slug="removed"/>
1718
</entry>

entries/jQuery.parseJSON.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ alert( obj.name === "John" );
4040
<category slug="utilities"/>
4141
<category slug="version/1.4.1"/>
4242
<category slug="deprecated/deprecated-3.0"/>
43+
<category slug="removed"/>
4344
</entry>

entries/jQuery.trim.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@
1717
<example>
1818
<desc>Remove the white spaces at the start and at the end of the string.</desc>
1919
<code><![CDATA[
20-
var str = " lots of spaces before and after ";
21-
$( "#original" ).html( "Original String: '" + str + "'" );
22-
$( "#trimmed" ).html( "$.trim()'ed: '" + $.trim(str) + "'" );
23-
]]></code>
24-
<html><![CDATA[
25-
<pre id="original"></pre>
26-
<pre id="trimmed"></pre>
27-
]]></html>
28-
</example>
29-
<example>
30-
<desc>Remove the white spaces at the start and at the end of the string.</desc>
31-
<code><![CDATA[
3220
$.trim(" hello, how are you? ");
3321
]]></code>
3422
<results><![CDATA[
@@ -38,4 +26,5 @@ $.trim(" hello, how are you? ");
3826
<category slug="utilities"/>
3927
<category slug="version/1.0"/>
4028
<category slug="deprecated/deprecated-3.5"/>
29+
<category slug="removed"/>
4130
</entry>

entries/jQuery.type.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,8 @@
4343
<li>Everything else returns "object" as its type.</li>
4444
</ul>
4545
</longdesc>
46-
<example>
47-
<desc>Find out if the parameter is a RegExp.</desc>
48-
<code><![CDATA[
49-
$( "b" ).append( "" + jQuery.type( /test/ ) );
50-
]]></code>
51-
<html><![CDATA[
52-
Is it a RegExp? <b></b>
53-
]]></html>
54-
</example>
5546
<category slug="utilities"/>
5647
<category slug="version/1.4.3"/>
5748
<category slug="deprecated/deprecated-3.3"/>
49+
<category slug="removed"/>
5850
</entry>

0 commit comments

Comments
 (0)