Skip to content

Added note about the deprecation of jQuery.isFunction in version 3.3#1077

Closed
AurelioDeRosa wants to merge 1 commit into
jquery:masterfrom
AurelioDeRosa:is-function
Closed

Added note about the deprecation of jQuery.isFunction in version 3.3#1077
AurelioDeRosa wants to merge 1 commit into
jquery:masterfrom
AurelioDeRosa:is-function

Conversation

@AurelioDeRosa
Copy link
Copy Markdown
Member

Fixes gh-1074

Copy link
Copy Markdown
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One remark, otherwise LGTM.

Comment thread entries/jQuery.isFunction.xml Outdated
<desc>Determine if the argument passed is a JavaScript function object. </desc>
<desc>Determine if the argument passed is a JavaScript function object.</desc>
<longdesc>
<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>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd change typeof obj === "function" to typeof x === "function"; obj suggests object is an input and that's not required.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion. Updating now.

@AurelioDeRosa AurelioDeRosa deleted the is-function branch February 10, 2018 18:06
@AurelioDeRosa AurelioDeRosa restored the is-function branch May 5, 2019 19:59
@AurelioDeRosa AurelioDeRosa deleted the is-function branch May 5, 2019 20:05
@AurelioDeRosa AurelioDeRosa restored the is-function branch May 6, 2019 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants