Nodes with id's are reflected in the `$` hash, not in `this`, so

   this.$.mything.athing; // returns `hello`


On Tue, Mar 4, 2014 at 10:41 PM, Gary Ryan <[email protected]>wrote:

> <link rel="import" href="../bower_components/polymer/polymer.html">
> <polymer-element name="my-thing">
>     <script>
>         Polymer('my-thing', {
>             athing: 'hello'
>         });
>     </script>
> </polymer-element>
>
> <link rel="import" href="../bower_components/polymer/polymer.html">
> <link rel="import" href="./mything.html">
>
>
> <polymer-element name="my-hello"">
>     <template>
>          <my-thing id="mything"></my-thing>
>     </template>
>     <script>
>         Polymer('my-hello', {
>             ready: function () {
>                 this.mything.athing // returns undefined
>             }
>         });
>     </script>
> </polymer-element>
>
>
>  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/7a539b51-7d6e-4e67-a917-343ab4ec2f94%40googlegroups.com<https://groups.google.com/d/msgid/polymer-dev/7a539b51-7d6e-4e67-a917-343ab4ec2f94%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

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/CAHbmOLbPdRG7a_XWmonJLQ0z3-wwE2PQ1LM073wHNt%2BCzQoRFw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to