🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@jbedard
Copy link
Contributor

@jbedard jbedard commented Dec 18, 2017

Fixes gh-3609

Summary

Deprecates the public isFunction, but it is still used in many places.

Checklist

@jbedard jbedard force-pushed the 3609 branch 2 times, most recently from 74b0e44 to 9729982 Compare December 18, 2017 17:48
@mgol
Copy link
Member

mgol commented Dec 18, 2017

Could you create Migrate & API tickets referring to this deprecation?


return function isFunction( obj ) {

// Support: Chrome <=57, Firefox <=52
Copy link
Member

Choose a reason for hiding this comment

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

Do we even need this function anymore? Currently we're at Chrome 62 and Firefox 57. Edit: Well hecky-darn nevermind, looks like Firefox ESR is still on 52 until the middle of next year. 😢

Copy link
Member

@dmethvin dmethvin left a comment

Choose a reason for hiding this comment

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

LGTM. It seems like we'll be able to remove isFunction next year but this will allow Migrate to start checking for external uses sooner.

@jbedard
Copy link
Contributor Author

jbedard commented Jan 5, 2018

@jbedard jbedard force-pushed the 3609 branch 2 times, most recently from 4657561 to 33ea9fd Compare January 8, 2018 17:30
@jbedard
Copy link
Contributor Author

jbedard commented Jan 14, 2018

Interesting that this one decreases size, unlike #3895. I guess the number of calls (that can now be renamed to a single character) is enough that it can only improve things, gziped or not.

   raw     gz Compared to master @ 6c38ebbd47c6b0fa654733819bd5ae36c1ac6c48
  -161     -9 dist/jquery.js
  -430    -19 dist/jquery.min.js

@jbedard jbedard merged commit 3d732cc into jquery:master Jan 15, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate jQuery.isFunction

3 participants