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

[WIP] refactor(legacy support): use unified component #72

Closed

Conversation

simonihmig
Copy link
Collaborator

  • uses in-element-polyfill and maybe-in-element AST transforms to allow to use in-element with legacy support back to Ember 1.13 (ember-wormhole based)
  • Cleaned up unnecessary legacy components

Closes #71

BREAKING CHANGE:
Support for Ember <1.13 has been dropped!

@simonihmig simonihmig force-pushed the in-element-refactoring branch 2 times, most recently from 8b2ac3b to f723f26 Compare January 14, 2018 23:05
* uses `in-element-polyfill` and `maybe-in-element` AST transforms to allow to use `in-element` with legacy support back to Ember 1.13 (ember-wormhole based)
* Cleaned up unnecessary legacy components

Closes kybishop#71

BREAKING CHANGE:
Support for Ember <1.13 has been dropped!
}
return wait()
.then(() => triggerEvent(document.querySelector('body'), 'scroll'))
.then(() => wait())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: this change (wait -> () => wait()) is unrelated to my changes but was required, as the latest ember-test-helpers was causing this error when some argument (here the resolved promise) is passed to wait: https://travis-ci.org/kybishop/ember-popper/jobs/328856339#L547.

See https://github.com/emberjs/ember-test-helpers/blob/9eb3e32f8340d01704e950f317b282f07073f1e9/addon-test-support/%40ember/test-helpers/settled.js#L169-L174

Don't know if this should be regarded a regression of ember-test-helpers/wait or not? 🤔 /cc @rwjblue

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, can you report over there so we can dig into it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simonihmig
Copy link
Collaborator Author

@pzuraq any idea about this error? https://travis-ci.org/kybishop/ember-popper/jobs/328857614#L542

Happens only for ember-try scenarios with Ember <= 2.12 🤔

@pzuraq
Copy link
Collaborator

pzuraq commented Jan 17, 2018

Something is going wrong with the legacy class transform. I'll see if I can debug sometime soon, swamped at the moment

@simonihmig
Copy link
Collaborator Author

Closing this as master has diverged too much. Another PR will follow...

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

Successfully merging this pull request may close these issues.

3 participants