Skip to content

Conversation

@rondale-sc
Copy link
Contributor

This is dependent on this glimmer-vm PR to actually work glimmerjs/glimmer-vm#788. Which means we'll need to wait until it is merged/bumped and Ember itself updates to use the release with it in it before we can land this.

The idea here is to insulate things that depend on the magic string we use to determine whether or not the DOM node we pass was produced by the serialization element builder.

This needs to be exposed on the global to ensure we can use it in the ember-cli-fastboot vendor file so we can determine how to boot the app when it is loaded in the browser.

To see where it'd be used in ember-cli-fastboot please see this PR with the in progress work:

ember-fastboot/ember-cli-fastboot#580

@rondale-sc rondale-sc changed the title Tack serialization-first-node-helpers onto Ember global [HOLD] Tack serialization-first-node-helpers onto Ember global Feb 27, 2018
getChildViews: views.getChildViews
getChildViews: views.getChildViews,
isSerializationFirstNode: isSerializationFirstNode,
SERIALIZATION_FIRST_NODE_STRING: SERIALIZATION_FIRST_NODE_STRING
Copy link
Member

Choose a reason for hiding this comment

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

I’d rather not export this string for now (we can always come back and do it later if needed)...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. 👍

@rwjblue
Copy link
Member

rwjblue commented Mar 1, 2018

Just published glimmer-vm 0.32.2 with the function exported, mind updating?

This is dependent on this glimmer-vm PR to actually work glimmerjs/glimmer-vm#788. Which means we'll need to wait until it is merged/bumped and Ember itself updates to use the release with it in it before we can land this.

The idea here is to insulate things that depend on the magic string we use to determine whether or not the DOM node we pass was produced by the serialization element builder.

This needs to be exposed on the global to ensure we can use it in the ember-cli-fastboot vendor file so we can determine how to boot the app when it is loaded in the browser.

To see where it'd be used in ember-cli-fastboot please see this PR with the in progress work:

ember-fastboot/ember-cli-fastboot#580
@rondale-sc rondale-sc force-pushed the tack-serialization-first-node-util-to-ember-view-utils branch from 34e040f to 857b937 Compare March 6, 2018 15:51
@rondale-sc rondale-sc force-pushed the tack-serialization-first-node-util-to-ember-view-utils branch from 857b937 to 86f1591 Compare March 6, 2018 16:09
@rwjblue rwjblue changed the title [HOLD] Tack serialization-first-node-helpers onto Ember global Expose ability to detect serialization node. Mar 6, 2018
@rwjblue rwjblue merged commit 8177f46 into emberjs:master Mar 6, 2018
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.

2 participants