[Bug 18747] [Custom]: Specify invoking "created" callback

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18747

Scott Miles <sjmiles@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjmiles@chromium.org

--- Comment #5 from Scott Miles <sjmiles@chromium.org> ---
For the work my team is doing, 'create' is a critical entry-point
(initialization after all shadow roots are created), but it turns out we also
could use an entry-point *before* the shadow roots are created.

A strawman API:

// called on the ultimate subclass 
// when the element in instantiated
// but BEFORE any shadowRootCreated. 
// inSuper argument provided to call inherited 'created'
// which is otherwise private
created: function(inSuper) 

// called on each extendor, from oldest to youngest,
// when it's respective shadow root is intantiated
// inRoot argument provides reference to the shadow root
// which MAY otherwise be private
shadowRootCreated: function(inRoot) 

// called on the ultimate subclass 
// when the element in instantiated
// and AFTER all shadowRootCreated. 
// inSuper argument provided to call inherited 'created'
// which is otherwise private
ready: function(inSuper) 

Unfortunately increases complexity, but I suggest we need to service these
custom inheritance trees properly.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 12 December 2012 23:10:47 UTC