question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jquery-integration optional feature prints a warning even when enabled

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
simonihmigcommented, Sep 14, 2018

@bendemboski Thanks for the reproduction, that was helpful!

I created a PR for ember-optional-features that fixes the problem: https://github.com/emberjs/ember-optional-features/pull/24

0reactions
bendemboskicommented, Sep 13, 2018

FWIW, here’s a repo with a failing test for the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found