Re: [webcomponents]: Declarative Custom Elements Take Umpteen, The Karate Kid Edition

On Tue, May 14, 2013 at 1:58 PM, Erik Arvidsson <arv@chromium.org> wrote:

>
> <element name="foo-bar">
>    ...
>    <script>
>        class FooBar {
>            ...
>        };
>    </script>
> </element>


Is it then possible to explicitly return the class after definition? I'm
asking because <script> return value is something I was not aware of.

Example:

<element name="foo-bar">
   ...
   <script>
       class FooBar {
           ...
       };

       return FooBar;

       // OR

       FooBar
   </script>
</element>

Received on Tuesday, 14 May 2013 21:05:25 UTC