Skip to content

Commit a7130b1

Browse files
committed
Added note about the deprecation of jQuery.isFunction in version 3.3
Fixes gh-1074
1 parent db4ca52 commit a7130b1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

categories.xml

Lines changed: 5 additions & 0 deletions
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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
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>
66
<argument name="obj" type="PlainObject">
77
<desc>Object to test whether or not it is a function.</desc>
88
</argument>
99
</signature>
10-
<desc>Determine if the argument passed is a JavaScript function object. </desc>
10+
<desc>Determine if the argument passed is a JavaScript function object.</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 obj === "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)