Skip to content

[Glimmer] The view tree now supports glimmer#357

Merged
teddyzeenny merged 1 commit intoemberjs:masterfrom
teddyzeenny:glimmer
May 12, 2015
Merged

[Glimmer] The view tree now supports glimmer#357
teddyzeenny merged 1 commit intoemberjs:masterfrom
teddyzeenny:glimmer

Conversation

@teddyzeenny
Copy link
Copy Markdown
Contributor

Fixes #351
Fixes emberjs/ember.js#11027
Fixes #356

There was a shift in concept from a view tree to a render node tree.
Previously, the template tree was made of a hierarchy of view instances.
After the Glimmer rewrite, view instances are optional and secondary, and the main template representation is a render node tree.

This required a re-write of all of view-debug.js. Old code was left untouched, so the current version supports both pre-glimmer and post-glimmer. We detect glimmer by checking for the absence of _childViews on the top level view.

All code that touches private api (anything that has to do with render nodes) needs to be moved to Ember core and tested.

There was a shift in concept from a view tree to a render node tree.
Previously, the template tree was made of a hierarchy of view instances.
After the Glimmer rewrite, view instances are optional and
secondary, and the main template representation is a render node tree.

This required a re-write of all of view-debug.js. Old code was left
untouched, so the current version supports both pre-glimmer and post-glimmer. We detect glimmer
by checking for the absence of `_childViews` on the top level view.

All code that touches private api (anything that has to do with render
nodes) needs to be moved to Ember core and tested.
@rwjblue
Copy link
Copy Markdown
Member

rwjblue commented May 12, 2015

👍

teddyzeenny added a commit that referenced this pull request May 12, 2015
[Glimmer] The view tree now supports glimmer
@teddyzeenny teddyzeenny merged commit 0993cdc into emberjs:master May 12, 2015
@teddyzeenny teddyzeenny deleted the glimmer branch May 12, 2015 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants