jquery-integration optional feature prints a warning even when enabled
See original GitHub issueI’ve followed all the steps that are needed for enabling jQuery integration (I have the latest versions of @ember/jquery and @ember/optional-features installed and in package.json; have "jquery-integration": true in optional-features.json) but I still see a warning in the console when accessing originalEvent. I see the following check:
return EmberENV._JQUERY_INTEGRATION === true;
Which returns false in my case as EmberENV is:
{"FEATURES":{},"EXTEND_PROTOTYPES":false,"_APPLICATION_TEMPLATE_WRAPPER":false,"_TEMPLATE_ONLY_GLIMMER_COMPONENTS":true}
I think _JQUERY_INTEGRATION defaults to true and perhaps it is being removed from the hash because it has the same value? If this is so, the code above should be changed to:
return EmberENV._JQUERY_INTEGRATION !== false;
Am I missing something?
P.S. Ember 3.3.1 and latest Ember CLI.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Deprecate jQuery Integration Optional Feature - Ember RFCs
Setting the jquery-integration optional feature to true has been deprecated. You must set this feature to false , disabling jQuery integration.
Read more >Include jQuery in the JavaScript Console - Stack Overflow
Just changing jquery.com 's protocol to https results in a warning if you try it straight from the browser's URL bar: This is...
Read more >JavaScript and jQuery by Examples
Let's look into an input validation function isNotEmpty() in details. It takes 3 arguments, an input element, an error message, and an error...
Read more >Handling common JavaScript problems - MDN Web Docs
jQuery (or whatever library you are using) will then handle the differences ... When developers make use of new/nascent JavaScript features, ...
Read more >jQuery Typeahead Search Configuration - RunningCoder
Configuration · input. {string} [optional]. The jQuery input selector is only required if the Typeahead was initialized without a jQuery object. · minLength....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@bendemboski Thanks for the reproduction, that was helpful!
I created a PR for
ember-optional-featuresthat fixes the problem: https://github.com/emberjs/ember-optional-features/pull/24FWIW, here’s a repo with a failing test for the issue.