Re: [webcomponents]: Changing names of custom element callbacks

I renamed readyCallback to createdCallback in
https://dvcs.w3.org/hg/webcomponents/rev/a0559f51ecb7.

Regarding the inserted/removedCallback: did everyone have enough time
to chew on the all the arguments? What say you?

:DG<

On Fri, Jul 12, 2013 at 2:30 PM, Dimitri Glazkov <dglazkov@google.com> wrote:
> Dear WebAppazoids,
>
> I would like to acquaint you with proposals around bettering the names
> of custom element callbacks. Please kindly comment on the proposals.
>
> Note, this is not at all a bikeshedding exercise. It's a totally
> scientific thing. I wired a hypothetical web developer Bialar (we call
> him Bob) to mysterious machine, then spoke existing callbacks names
> out loud and analyzed the results.
>
> Rename readyCallback to createdCallback
> (https://www.w3.org/Bugs/Public/show_bug.cgi?id=22564)
> Bob was outraged. Ready for what? Battle with the Scarrans? The
> "created" is much closer to what's actually happening, since the
> callback is only invoked when a custom element is created.
>
> Rename inserted/removedCallback to entered/leftDocumentCallback
> (https://www.w3.org/Bugs/Public/show_bug.cgi?id=22565)
> Once again, Bob threw a hissing fit, demanding precision and revenge.
> To keep the peace, the names have been tweaked to be as descriptive as
> possible. Sadly, they are now three words long.
>
> P.S. Also, watch Dominic's excellent overview of custom element
> callbacks in http://www.youtube.com/watch?v=yo2SA3D_KPA (warning, no
> cats)
>
> :DG<

Received on Wednesday, 7 August 2013 20:56:02 UTC