-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow usage with ember-cli-fastboot. #13
Conversation
Interesting, I wonder if we could test that it works with fastboot. 👍 on the changes! |
A few more changes are required in Fastboot itself to allow this, but I am working on those next. The first step was to remove the usage of @kimroen - Working on another PR to confirm that it works on all Ember versions from 1.10 and up. |
@rwjblue Ah, using |
@kimroen - confirm |
* `renderer:-dom` is provided in versions of Ember > 1.10. * Actually test the real document.title in `ember test` (to help ensure this is really working).
77c36d2
to
762302a
Compare
OK, this should be ready to go.
Travis will now run one build per Ember version, so that a failure in a specific version can be spotted easily. This is in line with the current ember-cli blueprint for new addons (unreleased). See the travis build here: https://travis-ci.org/kimroen/ember-cli-document-title/builds/59563596 |
}, | ||
|
||
afterEach: function() { | ||
Ember.run(application, 'destroy'); | ||
document.title = document.title; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be
document.title = originalTitle;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heheh, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. Good catch.
762302a
to
80ed50c
Compare
Cool - this is pretty rad. Thanks again. I'll merge and release this in a little bit. |
Just as a note: I'm not sure I understand what |
Allow usage with ember-cli-fastboot.
It doesn't do anything.... Yet |
Well, that wasn't exactly correct. In a browser (as of 1.11 or 1.12) '_dom.document' is just 'window.document'. In node it does not blow up (which is an improvement), but it doesn't cause the fastboot server to add the title to < head> yet. I'm still working on that part. |
Okay, so it doesn't really "add support for Fastboot" then, but it will likely Just Work™ once that's taken care of. Just trying to make sure I don't lie in the changelog :) |
Thanks again - available as version |
@kimroen - Correct it does not add support, it allows this addon to be used if you are using Fastboot. Without these tweaks, having this addon in an application that wanted to use fastboot would throw an error (because |
@rwjblue Understood! On Wed, Apr 22, 2015 at 8:09 PM, Robert Jackson notifications@github.com
|
A little followup here: using ember-fastboot/ember-cli-fastboot#22 along with 0.1.0 of ember-cli-document-title works properly when rendered via ember-cli-fastboot. |
Thanks for the update - very exciting! |
renderer:-dom
is provided in versions of Ember > 1.10.ember test
(to help ensure this is really working).