Skip to content
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

Expose optional features #27

Open
bendemboski opened this issue Oct 6, 2018 · 2 comments
Open

Expose optional features #27

bendemboski opened this issue Oct 6, 2018 · 2 comments

Comments

@bendemboski
Copy link

There is currently no public API for accessing the state of optional features at runtime, and this addon seems like the ideal place. Something like:

import { hasOptionalFeature } from 'ember-compatibility-helpers';

if (hasOptionalFeature('jquery-integration')) {
  // ...
}

I think this will either require, or else supercede emberjs/ember-optional-features#10, but either way, should address emberjs/ember-optional-features#10 (comment).

@rwjblue
Copy link
Member

rwjblue commented Dec 16, 2019

I totally agree.

@knownasilya
Copy link

Yeah, trying to write tests that work with classic and v4, and hitting this. Any ideas?

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

No branches or pull requests

3 participants