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

Make LinkView FastBoot™-compatible #10316

Merged
merged 5 commits into from
Jan 31, 2015
Merged

Make LinkView FastBoot™-compatible #10316

merged 5 commits into from
Jan 31, 2015

Conversation

tomdale
Copy link
Member

@tomdale tomdale commented Jan 30, 2015

This PR removes the DOM dependency of LinkView. It also includes tests for Node.js that exercise creating an app instance and rendering a template with a {{link-to}}.

This branch is ready to go once HTMLbars has been updated with the necessary DOMHelper hook (see tildeio/htmlbars#273).

Tom Dale and Yehuda Katz added 5 commits January 30, 2015 15:29
This commit provides a mechanism for the renderer to disable invoking
the `willInsertElement` and `didInsertElement`. This private API is used
by FastBoot to ensure that code that relies on DOM does not get invoked
in the Node.js context.

It is possible that a better future solution would be to have the code
that is responsible for actually inserting the element into DOM also
be responsible for invoking the hooks (i.e., appendTo and replaceIn).
`didInsertElement` should probably not be invoked in any `createElement`
phase, but we leave that work for future commits.
@tomdale tomdale changed the title [WIP] Make LinkView FastBoot™-compatible Make LinkView FastBoot™-compatible Jan 31, 2015
tomdale added a commit that referenced this pull request Jan 31, 2015
Make LinkView FastBoot™-compatible
@tomdale tomdale merged commit 04463cf into master Jan 31, 2015
@tomdale tomdale deleted the more-node-tests branch January 31, 2015 02:42
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.

1 participant