Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions entries/jQuery.Deferred.getStackHook.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jQuery.Deferred.getStackHook = function() {
<category slug="deferred-object"/>
<category slug="version/3.0"/>
<category slug="deprecated/deprecated-3.7"/>
<category slug="removed"/>
</entry>
23 changes: 1 addition & 22 deletions entries/jQuery.fx.interval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,9 @@
<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>
<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>
</longdesc>
<example>
<desc>Cause all animations to run with less frames.</desc>
<code><![CDATA[
jQuery.fx.interval = 100;
$( "input" ).on( "click", function() {
$( "div" ).toggle( 3000 );
});
]]></code>
<css><![CDATA[
div {
width: 50px;
height: 30px;
margin: 5px;
float: left;
background: green;
}
]]></css>
<html><![CDATA[
<p><input type="button" value="Run"></p>
<div></div>
]]></html>
</example>
<category slug="effects/custom-effects"/>
<category slug="properties/global-jquery-object-properties"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-3.0"/>
<category slug="removed"/>
</entry>
10 changes: 1 addition & 9 deletions entries/jQuery.isArray.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,8 @@
</div>
<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>
</longdesc>
<example>
<desc>Finds out if the parameter is an array.</desc>
<code><![CDATA[
$( "b" ).append( "" + $.isArray([]) );
]]></code>
<html><![CDATA[
Is [] an Array? <b></b>
]]></html>
</example>
<category slug="utilities"/>
<category slug="version/1.3"/>
<category slug="deprecated/deprecated-3.2"/>
<category slug="removed"/>
</entry>
36 changes: 1 addition & 35 deletions entries/jQuery.isFunction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,6 @@
</div>
<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>
</longdesc>
<example>
<desc>Test a few parameter examples.</desc>
<code><![CDATA[
function stub() {}
var objs = [
function() {},
{ x:15, y:20 },
null,
stub,
"function"
];

jQuery.each( objs, function( i ) {
var isFunc = jQuery.isFunction( objs[ i ]);
$( "span" ).eq( i ).text( isFunc );
});
]]></code>
<css><![CDATA[
div {
color: blue;
margin: 2px;
font-size: 14px;
}
span {
color: red;
}
]]></css>
<html><![CDATA[
<div>jQuery.isFunction( objs[ 0 ] ) = <span></span></div>
<div>jQuery.isFunction( objs[ 1 ] ) = <span></span></div>
<div>jQuery.isFunction( objs[ 2 ] ) = <span></span></div>
<div>jQuery.isFunction( objs[ 3 ] ) = <span></span></div>
<div>jQuery.isFunction( objs[ 4 ] ) = <span></span></div>
]]></html>
</example>
<example>
<desc>Finds out if the parameter is a function.</desc>
<code><![CDATA[
Expand All @@ -61,4 +26,5 @@ true
<category slug="utilities"/>
<category slug="version/1.2"/>
<category slug="deprecated/deprecated-3.3"/>
<category slug="removed"/>
</entry>
1 change: 1 addition & 0 deletions entries/jQuery.isNumeric.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ $.isNumeric( undefined )
<category slug="utilities"/>
<category slug="version/1.7"/>
<category slug="deprecated/deprecated-3.3"/>
<category slug="removed"/>
</entry>
10 changes: 1 addition & 9 deletions entries/jQuery.isWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
</div>
<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>
</longdesc>
<example>
<desc>Finds out if the parameter is a window.</desc>
<code><![CDATA[
$( "b" ).append( "" + $.isWindow( window ) );
]]></code>
<html><![CDATA[
Is 'window' a window? <b></b>
]]></html>
</example>
<category slug="utilities"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-3.3"/>
<category slug="removed"/>
</entry>
1 change: 1 addition & 0 deletions entries/jQuery.now.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<category slug="utilities"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-3.3"/>
<category slug="removed"/>
</entry>
1 change: 1 addition & 0 deletions entries/jQuery.parseJSON.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ alert( obj.name === "John" );
<category slug="utilities"/>
<category slug="version/1.4.1"/>
<category slug="deprecated/deprecated-3.0"/>
<category slug="removed"/>
</entry>
13 changes: 1 addition & 12 deletions entries/jQuery.trim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@
<example>
<desc>Remove the white spaces at the start and at the end of the string.</desc>
<code><![CDATA[
var str = " lots of spaces before and after ";
$( "#original" ).html( "Original String: '" + str + "'" );
$( "#trimmed" ).html( "$.trim()'ed: '" + $.trim(str) + "'" );
]]></code>
<html><![CDATA[
<pre id="original"></pre>
<pre id="trimmed"></pre>
]]></html>
</example>
<example>
<desc>Remove the white spaces at the start and at the end of the string.</desc>
<code><![CDATA[
$.trim(" hello, how are you? ");
]]></code>
<results><![CDATA[
Expand All @@ -38,4 +26,5 @@ $.trim(" hello, how are you? ");
<category slug="utilities"/>
<category slug="version/1.0"/>
<category slug="deprecated/deprecated-3.5"/>
<category slug="removed"/>
</entry>
10 changes: 1 addition & 9 deletions entries/jQuery.type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,8 @@
<li>Everything else returns "object" as its type.</li>
</ul>
</longdesc>
<example>
<desc>Find out if the parameter is a RegExp.</desc>
<code><![CDATA[
$( "b" ).append( "" + jQuery.type( /test/ ) );
]]></code>
<html><![CDATA[
Is it a RegExp? <b></b>
]]></html>
</example>
<category slug="utilities"/>
<category slug="version/1.4.3"/>
<category slug="deprecated/deprecated-3.3"/>
<category slug="removed"/>
</entry>
29 changes: 1 addition & 28 deletions entries/jQuery.unique.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,8 @@
<p>The <code>$.unique()</code> function searches through an array of objects, sorting the array, and removing any duplicate nodes. A node is considered a duplicate if it is the <em>exact same</em> node as one already in the array; two different nodes with identical attributes are not considered to be duplicates. This function only works on plain JavaScript arrays of DOM elements, and is chiefly used internally by jQuery. You probably will never need to use it.</p>
<p>As of jQuery 1.4 the results will always be returned in document order.</p>
</longdesc>
<example>
<desc>Removes any duplicate elements from the array of divs.</desc>
<code><![CDATA[
// unique() must take a native array
var divs = $( "div" ).get();

// Add 3 elements of class dup too (they are divs)
divs = divs.concat( $( ".dup" ).get() );
$( "div" ).eq( 1 ).text( "Pre-unique there are " + divs.length + " elements." );

divs = jQuery.unique( divs );
$( "div" ).eq( 2 ).text( "Post-unique there are " + divs.length + " elements." )
.css( "color", "red" );
]]></code>
<css><![CDATA[
div {
color: blue;
}
]]></css>
<html><![CDATA[
<div>There are 6 divs in this document.</div>
<div></div>
<div class="dup"></div>
<div class="dup"></div>
<div class="dup"></div>
<div></div>
]]></html>
</example>
<category slug="utilities"/>
<category slug="version/1.1.3"/>
<category slug="deprecated/deprecated-3.0"/>
<category slug="removed"/>
</entry>