Hi Martin,

After you've created your element you should be able to just check for the
existence of those properties in the polymer-ready callback. I've updated
your jsbin: http://jsbin.com/nelav/2/edit

metadata.html is only used by the designer tool. Were you trying to add
your element to the tool?


On Mon, Jun 9, 2014 at 3:22 PM, Martin Amm <[email protected]> wrote:

> Hi,
>
> I've e.g. a custom element with two attributes: who, where
> <polymer-element name="hello-world" attributes="who where">
> ...
>
> I'm now creating the element with
> var hello = document.createElement('hello-world');
>
> and I now need to know that my var hello has two attributes: "who where"
>
> I unfortunately was not able to find a way to get this information. Did I
> miss something?
>
> I've created a basic sample at http://jsbin.com/gadig/2/edit
>
> Creating a metadata.html/x-meta seems to be a possible solution, but
> redundant / not DRY.
>
>
> Martin
>
>  Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/fc2845fd-de5e-4049-9324-427cc63985b8%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/fc2845fd-de5e-4049-9324-427cc63985b8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAJj5OwAnWa6b2Fqez9Aed69ykwwzRVJPc8YC3q%3DXC6-tAcX1wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to