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

Swap the modal-dialog template based on Ember version. #43

Merged
merged 4 commits into from
Jun 18, 2015

Conversation

rwjblue
Copy link
Contributor

@rwjblue rwjblue commented Jun 18, 2015

Updates to use library that @lukemelia and I worked on at WGE to detect the Ember version, and use a different template as needed.

Requires a release of ember-tether including yapplabs/ember-tether#4 before the internal ember-tether + ember-modal-dialog tests will pass in 1.13.

Closes #41.
Fixes #34.

lukemelia and others added 4 commits June 5, 2015 00:58
`Ember.View` is a deprecated wrapper (triggering a deprecation on init)
for the "true" Ember.View class in 1.13+.

This change simplifies the logic, and uses `.element` prop if present.
@chrislopresto
Copy link
Contributor

Looks good to me. Thoughts, @lukemelia?

@lukemelia
Copy link
Contributor

👍 Thanks, @rwjblue!

lukemelia added a commit that referenced this pull request Jun 18, 2015
Swap the modal-dialog template based on Ember version.
@lukemelia lukemelia merged commit afb440c into yapplabs:master Jun 18, 2015
@rwjblue rwjblue deleted the use-version-checker branch June 18, 2015 23:55
@ef4
Copy link
Contributor

ef4 commented Jun 19, 2015

I tried this out with 2.0 beta and it doesn't work because

require('semver').satisfies('2.0.0-beta.1', '>= 1.13.0') === false

@sandstrom
Copy link
Contributor

Thanks @rwjblue!

@rwjblue
Copy link
Contributor Author

rwjblue commented Jun 19, 2015

@ef4 - Thanks for reporting! #44 should fix...

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.

5 participants