Re: [custom-elements] Rationale behind 5.2 (copying properties of the last value to a new prototype)

This section of the explainer is obsolete, see
http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0287.html for
details. Here's a bug to remove these parts from the explainer:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23393

:DG<


On Tue, Oct 1, 2013 at 2:30 AM, Kamil Leszczuk <kamituel@gmail.com> wrote:

> Hello,
>
> in 5.2 "Methods and properties" [1] the Web Components draft states that:
> "The properties of the last value of the script will be copied to a
> prototype object created for you.".
>
> What was the rationale behind choosing this design over more explicit one
> (i.e. this.tick = function () {...})?
>
> Thanks,
> Kamil
>
> [1]
> http://www.w3.org/TR/2013/WD-components-intro-20130606/#methods-and-properties
>
>

Received on Tuesday, 1 October 2013 17:03:54 UTC