Commit ba41fd35 authored by Hixie's avatar Hixie

More dartdoc for fn3, and sundry changes.

- move _uniqueChild earlier since a comment now mentions it earlier.
- reorder methods in Element to more closely reflect call order.
- change mount to be the place that sets the parent pointer, for consistency.
- make the lifecycleState a purely debug-time thing for consistency.
- make BuildableElement.unmount set dirty to false so that we won't
  build unmounted objects.
- rename "updated" to "newWidget" for clarity.
- change how we unmount things so that the slot is reset up to a
  RenderObjectElement, but not further, and don't reset the depth.
parent 12097bdd
This diff is collapsed.
......@@ -37,7 +37,7 @@ class WidgetTester {
void pumpFrame(Widget widget) {
if (_rootElement == null) {
_rootElement = new StatelessComponentElement(new TestComponent(child: widget));
_rootElement.mount(_rootSlot);
_rootElement.mount(null, _rootSlot);
} else {
_rootElement.update(new TestComponent(child: widget));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment