-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jQuery.fn.bind is deprecated #2729
Comments
We do not officially supporting jQuery 3 yet. And we do support older jQuery versions (1.4...1.7) that do not have the |
@koenpunt I suggets bumping the min requirement to jQuery 1.7 to be able to use |
@koenpunt Unfortunately that means that those who have a dependency on Jquery 3.x, and wish to use slim, cannot, since it strips out all deprecated functions. This is the case for Angular 1.6+. |
@koenpunt this is a question between dropping support for a version of jquery released in 2011 or between dropping support for the current jQuery versions. I vote for dropping support of old versions. |
Since there is already a |
It's still not me to decide, so please @pfiller can you weigh in on this discussion? Nb. I dislike the idea of |
there is no need for a jQuery 3 build IMO. We can support jquery 1.7 and 3.x with the same binding code. |
Include Migrate plugin to be sure we don't break anything. Chosen is currently impacted by harvesthq/chosen#2729 (nothing too serious atm)
I ran into this issue moving my app to jquery 3. Chosen was the only plugin whose latest version still had migration warnings. I vote for fixing this issue. |
@pfiller Would you accept dropping support for the jQuery 1.6 version (released in 2011) in favor of supporting jQuery 3 (which is the current stable jQuery version since 1 year now) ? If no, it may be possible to support both the new and old API in the codebase, but this would increase maintenance. |
👍 on bumping support to jQuery 1.7+ if that will also include 3 support. |
I support adding support for jQuery 3, especially since that is the only version of jQuery without known vulnerabilities. See http://research.insecurelabs.org/jquery/test/ and hit "Run" |
@JeffSchwandt jQuery 3 is supported since the 1.8.0 version of Chosen released in august 2017 (which is why this issue was closed in August 2017 too) |
While moving a codebase from an old jQuery 1.x installation to the latest and greatest (3.1.1), I enabled the jQuery Migration plugin and upgraded Chosen to version 1.6.2. From the console I could see deprecation warnings (see screenshot). I can confirm that the issue is still present on the master branch as of commit dacfa20.
Steps to reproduce
See this example or just any plain example with jQuery 3.1.1 and jQuery migration plugin 3.0.0.
Expected behavior
I expect no deprecation warnings when I run the migration tool.
Actual behavior
A deprecation warning appears in the browser console log.
Environment
master
(dacfa20)The text was updated successfully, but these errors were encountered: