Deprecate jQuery.isArray #2961
Deprecate jQuery.isArray #2961
Comments
|
|
|
agreed |
|
I guess it's worth moving
|
|
Nice find, but with this ticket we would need to move it to |
|
That's a calculation with the following code in jQuery.extend( {
isArray: isArray
} ); |
|
You mean gzip size will also change in identical manner if we move it to |
|
That's the result of having both |
|
Deprecation would mean that we:
so we can't have the |
|
Right, but as other built-in methods ( |
|
So you propose to put |
|
That's right. Sorry for not explaining that before. |
|
I wouldn't want size to influence our file hierarchy, it would be pretty confusing, also all deprecated modules should be stored in |
|
@markelog I agree to an extent but @FarSeeing only proposes to put Array.isArray in a var-module, not the soon-to-be-deprecated jQuery.isArray; see our last 2 comments. |
|
Oh, i see, but i wouldn't do that too :), don't really see the point |
|
Guys, is there a possibility of me submitting a PR for this? |
|
@ShashankaNataraj Sure! Do you know what needs to be done? |
|
I would wait until we would have discussion about this, it seems some team members feel "deprecation" process of core methods might be inappropriate. |
|
Also, the third item - its unit tests have to be moved to jQuery.isArray as Also, if this hasn't been mentioned before - each deprecation, apart from a Michał Gołębiowski |
|
@mgol Didnt get what you meant by
I understand unit tests need to be modified but jQuery.isArray tests need to be removed right? Actually I have been raising issues like this for every deprecation issue Im working on.. Raised one for this issue too. |
Not removed but moved to
I've seen them, thanks for that! I meant that apart from the API issue we also need an issue at https://github.com/jquery/jquery-migrate/issues about a need to restore the API (because people may exclude the deprecated module) with a warning against using it. |
|
@ShashankaNataraj seems not to be working on this. Can I please take this ? |
|
Correct me, for any changes
|
`$.isArray` is deprecated in jQuery 3.2, so Array.isArray should be the way to go. jquery/jquery#2961 https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/
|
Update Docs? http://api.jquery.com/jQuery.isArray/ |
`$.isArray` is deprecated in jQuery 3.2, so Array.isArray should be the way to go. jquery/jquery#2961 https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/
Seems fulfilled with
Array.isArrayThe text was updated successfully, but these errors were encountered: