-
Notifications
You must be signed in to change notification settings - Fork 69
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
Use latest visit API #2
Conversation
this.waitForBoot = function() { | ||
return appBoot.promise; | ||
}; | ||
var AppFactory = sandbox.require('~fast-boot/app-factory'); |
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.
Pardon my ignorance, but what does ~
do here?
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.
I copied it from Stef :P I think it is just to make it less likely to collide with user codez; on the other hand, I already relied on a globa called FastBoot
so...
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.
This is injected from the addon build step
7a5b606
to
2c71bde
Compare
This commit has an implicit cross-dependency on ember-fastboot/ember-cli-fastboot#71. This commit takes advantage of the new visit API in Ember and moves most of the heavy-lifting (runtime stuff) into the server.
2c71bde
to
6ae5e6e
Compare
LGTM @tomdale - Can you review? |
var sandbox = createSandbox(appBoot.resolve, { | ||
najax: najax | ||
}); | ||
var sandbox = createSandbox({ najax: najax }); |
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.
We should think about exposing a more flexible primitive for this so addons can do similar things.
Awesome work, @chancancode! |
Published this as |
Update fastboot server for emberjs/ember.js#12394
Require coordination from ember-fastboot/ember-cli-fastboot#71
autoBoot
FastBoot
globalOpen question:
cc @tomdale @stefanpenner