W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: document.register and ES6

From: Erik Arvidsson <arv@chromium.org>
Date: Wed, 6 Feb 2013 12:56:24 -0500
Message-ID: <CAJ8+GohB8feVFAhHL_G6ZaApCM6DY=mY0H1Fur3wMGv61vRg1A@mail.gmail.com>
To: Scott Miles <sjmiles@google.com>, Alex Russell <slightlyoff@google.com>
Cc: Daniel Buchner <daniel@mozilla.com>, public-webapps <public-webapps@w3.org>, Dimitri Glazkov <dglazkov@google.com>, Boris Zbarsky <bzbarsky@mit.edu>
On Wed, Feb 6, 2013 at 12:47 PM, Scott Miles <sjmiles@google.com> wrote:
>>> Instead of passing in functions to document.register we can call methods
>>> on the custom element.
>
> My understanding is that the 'passing in functions' was a design decision,
> not a technical one. IOW, Dimitri spec'd it that way so these (private)
> lifecycle methods aren't just sitting there on the node's public API.
>
> This technique certainly on the table to change, but I think it's improper
> to deem it technical debt.

Good point about allowing these to be non public members of the element.

With that in mind maybe we should reconsider to go back to the
property bag even though it is a lot more verbose.

-- 
erik
Received on Wednesday, 6 February 2013 17:57:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT