組件生命週期包括三步:initialization, update, destruction.
過程方法見下表總結:Life Cycle Procedure | |||
initialization | construction | ||
attachment(be added to the display list and it has a parent) | |||
initialization | dispatches the preinitialize event | ||
createChildren() | |||
dispatches the initialize event | |||
goes throught a full invalidation & validation ( This step occurs both the here and during the update phase) | commitProperites() | ||
measure() | |||
updateDisplayList() | |||
update | Waiting for update request | ||
Update request | |||
Invalidation | |||
Validation | |||
destruction | Be removed from this display list no longer referenced anywhere |