- From: Anne van Kesteren <notifications@github.com>
- Date: Wed, 02 Mar 2016 08:10:54 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/405/r54745449@github.com>
> + > + <li>If <a href="https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values">Type</a>(<var>prototype</var>) is not Object, <a href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code>TypeError</code> exception.</li> > + > + <li>Let <var>attachedCallback</var> be <a href="https://tc39.github.io/ecma262/#sec-get-o-p">Get</a>(<var>prototype</var>, "attachedCallback"). Rethrow any exceptions.</li> > + > + <li>Let <var>detachedCallback</var> be <a href="https://tc39.github.io/ecma262/#sec-get-o-p">Get</a>(<var>prototype</var>, "detachedCallback"). Rethrow any exceptions.</li> > + > + <li>Let <var>attributeChangedCallback</var> be <a href="https://tc39.github.io/ecma262/#sec-get-o-p">Get</a>(<var>prototype</var>, "attributeChangedCallback"). Rethrow any exceptions.</li> > + > + <li>Let <var>definition</var> be a new <a>custom element definition</a> with <a href="#dfn-element-definition-type">custom element type</a> <var>type</var>, <a href="#dfn-element-definition-local-name">local name</a> <var>localName</var>, <a href="#dfn-element-definition-constructor">constructor</a> <var>constructor</var>, <a href="#dfn-element-definition-prototype">prototype</a> <var>prototype</var>, and <a href="#dfn-element-definition-lifecycle-callbacks">lifecycle callbacks</a> <var>attachedCallback</var>, <var>detachedCallback</var>, and <var>attributeChangedCallback</var>.</li> > + > + <li>Add <var>definition</var> to <var>registry</var>.</li> > + > + <li>Let <var>map</var> be <var>registry</var>'s <a>upgrade candidates map</a>.</li> > + > + <li><a>Upgrade a newly-defined element</a> given <var>map</var> and <var>definition</var>.</li> Oh right. It's still weird to me we store them (and call the stored versions) but also ask subclasses to call them directly without that kind of safety. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/405/files#r54745449
Received on Wednesday, 2 March 2016 16:11:44 UTC