<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18747</bug_id>
          
          <creation_ts>2012-08-30 21:28:49 +0000</creation_ts>
          <short_desc>[Custom]: Specify invoking &quot;readyCallback&quot;</short_desc>
          <delta_ts>2013-04-22 21:59:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>18720</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>morrita</cc>
    
    <cc>sjmiles</cc>
    
    <cc>sorvell</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73088</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-30 21:28:49 +0000</bug_when>
    <thetext>The &quot;created&quot; callback is invoked _after_ we traversed through CHAIN. This is the callback to use to do stuff your particular element instance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73091</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-30 21:32:25 +0000</bug_when>
    <thetext>*** Bug 18731 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73092</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-30 21:34:29 +0000</bug_when>
    <thetext>One concern raised: the &quot;created&quot; callback effectively acts as a constructor, and this mechanism alone does not provide a way to invoke the &quot;created&quot; callback of the super-class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73093</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-30 21:43:15 +0000</bug_when>
    <thetext>One idea: pass the prototype&apos;s super created method:

created: function(superCreated) {
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77458</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-10-30 21:58:19 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/cad29a7d9a11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80050</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Miles">sjmiles</who>
    <bug_when>2012-12-12 23:10:42 +0000</bug_when>
    <thetext>For the work my team is doing, &apos;create&apos; 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 &apos;created&apos;
// which is otherwise private
created: function(inSuper) 

// called on each extendor, from oldest to youngest,
// when it&apos;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 &apos;created&apos;
// which is otherwise private
ready: function(inSuper) 

Unfortunately increases complexity, but I suggest we need to service these custom inheritance trees properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80051</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Miles">sjmiles</who>
    <bug_when>2012-12-12 23:12:02 +0000</bug_when>
    <thetext>The comment above overlaps with this bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=18748. Maybe I should have made a new bug altogether?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85873</commentid>
    <comment_count>7</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-10 20:13:48 +0000</bug_when>
    <thetext>*** Bug 21408 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85875</commentid>
    <comment_count>8</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-10 20:14:08 +0000</bug_when>
    <thetext>*** Bug 21409 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85906</commentid>
    <comment_count>9</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-10 22:28:15 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/50480689d0bf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86495</commentid>
    <comment_count>10</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-22 21:59:01 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/d0d9310e750a
https://dvcs.w3.org/hg/webcomponents/rev/0854a1983551
https://dvcs.w3.org/hg/webcomponents/rev/b37a366e3682

I think this is done now. Please look over the spec and make sure I didn&apos;t booger it up too much.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>