Skip to content

Commit ca12161

Browse files
committed
Added note about the deprecation of jQuery.isFunction in version 3.3
Closes jquerygh-1077 Fixes jquerygh-1074
1 parent ba6e6a4 commit ca12161

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

categories.xml

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@
7070
<desc><![CDATA[All the aspects of the API that were deprecated in the corresponding version of jQuery.
7171
<p>For more information, see the Release Notes/Changelog at <a href="http://blog.jquery.com/2016/06/09/jquery-3-0-final-released/">http://blog.jquery.com/2016/06/09/jquery-3-0-final-released/</a></p>
7272
]]></desc>
73+
</category>
74+
<category name="Deprecated 3.3" slug="deprecated-3.3">
75+
<desc><![CDATA[All the aspects of the API that were deprecated in the corresponding version of jQuery.
76+
<p>For more information, see the Release Notes/Changelog at <a href="http://blog.jquery.com/2018/01/19/jquery-3-3-0-a-fragrant-bouquet-of-deprecations-and-is-that-a-new-feature/</a></p>
77+
]]></desc>
7378
</category>
7479
</category>
7580
<category name="Dimensions" slug="dimensions">

entries/jQuery.isFunction.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<entry type="method" name="jQuery.isFunction" return="boolean">
2+
<entry type="method" name="jQuery.isFunction" return="boolean" deprecated="3.3">
33
<title>jQuery.isFunction()</title>
44
<signature>
55
<added>1.2</added>
@@ -9,6 +9,7 @@
99
</signature>
1010
<desc>Determines if its argument is callable as a function.</desc>
1111
<longdesc>
12+
<p>As of jQuery 3.3, <code>jQuery.isFunction()</code> has been deprecated. In most cases, its use can be replaced by <code>typeof x === "function"</code>.</p>
1213
<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>
1314
</longdesc>
1415
<example>
@@ -57,4 +58,5 @@ true
5758
</example>
5859
<category slug="utilities"/>
5960
<category slug="version/1.2"/>
61+
<category slug="deprecated/deprecated-3.3"/>
6062
</entry>

0 commit comments

Comments
 (0)