Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

jQuery 1.8 deprecations #4018

Closed
12 tasks done
dangoor opened this issue May 29, 2013 · 7 comments
Closed
12 tasks done

jQuery 1.8 deprecations #4018

dangoor opened this issue May 29, 2013 · 7 comments
Assignees
Milestone

Comments

@dangoor
Copy link
Contributor

dangoor commented May 29, 2013

This issue is tracking the verification that we're not going to be bitten by any of the following jQuery 1.8 deprecations/removals/changes. For details on any of the items, look at the jQuery 1.8 release announcement

  • $(element).data("events") – undocumented, not likely in use
  • Deferred.isResolved() and Deferred.isRejected() – replaced with Deferred.state()
  • $(element).closest(Array) returning Array – only use the normal versions that return jQuery objects
  • $.curCSS – should not be in use anyhow. just an alias for jQuery.css()
  • $.attrFn – undocumented, should not be in use
  • jqXHR.success, jqXHR.error
  • Deferred with sync $.ajax
  • jQuery#size() in favor of jQuery#length
  • exclusive events (containing a !) on trigger
  • $(document).bind("ready or $(document).on("ready
  • .load, .unload, .error
  • :text, :radio, :checkbox, :image, :password, :reset, :submit – shorthand for [type="text"] when searching
@ghost ghost assigned dangoor May 29, 2013
@dangoor
Copy link
Contributor Author

dangoor commented May 29, 2013

I found the following deprecated function uses:

  • jstree uses :checkbox
  • jstree uses .sze()
  • jstree has jqXHR.success
  • jasmine-jquery uses .size()
  • jquery.mockjax has jqXHR.success
  • smart autocomplete has jqXHR.success

@pthiess
Copy link
Contributor

pthiess commented May 29, 2013

Reviewed - This is part of this sprint story card to Upgrade jQuery. @dangoor Instead of putting a priority the importance is given by the milestone already which should be accurate, do you agree?

@dangoor
Copy link
Contributor Author

dangoor commented May 29, 2013

Note that @TuckerWhitehouse has also spotted use of Deferred.pipe which was deprecated in 1.8:

https://github.com/adobe/brackets/wiki/Research:-jQuery-2.0-Upgrade

(I wish 1.8 had an upgrade guide! That one was not very obvious from the release notes.)

@dangoor
Copy link
Contributor Author

dangoor commented May 29, 2013

jstree's use of .success is fine (it's not .success on a promise from jquery).

@dangoor
Copy link
Contributor Author

dangoor commented May 29, 2013

We don't hit the code path of Smart Autocomplete's deprecated .success call. That's a good thing, because it's currently brought in as a submodule from its original source.

@dangoor
Copy link
Contributor Author

dangoor commented May 30, 2013

I've put up a pull request for Smart Autocomplete's use of .success, but this need not be a blocker for our work here.

@njx
Copy link
Contributor

njx commented Jun 5, 2013

@dangoor - looks like we can close this now since the remaining issue doesn't really need to be tracked. Feel free to reopen if necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants