Did you try just this.$.theThing.postMessage()? Since that node is local to
your element's DOM, you shouldn't need the Polymer.dom() wrappers. Those
are mainly for cases where you're manipulating the light DOM of an element
and doing
things that could affect distribution.

On Fri, Jul 17, 2015 at 10:28 AM eric sherouse <[email protected]> wrote:

> Hello,
>
> I am migrating my app from Polymer 0.5 to 1.0. I have an element with an
> embed tag in it (used to communicate with a Native Client module actually).
>
> <embed id="theThing" src="{{nmf}}" type="application/x-pnacl"
> on-load="loaded" on-message="receive">
>
> In 0.5, I was able to use postMessage to communicate with this embed
> element like this:
>
> this.$.theThing.postMessage()
>
> In 1.0, it appears I can no longer access the postMessage method (it is
> undefined). I have tried multiple element selector variations:
>
> Polymer.dom(this.$.theThing).postMessage(); //does not work
> this.$$("#theThing").postMessage(); //does not work
> Polymer.dom(this.root).querySelector("#theThing").postMessage(); //does
> not work
>
> Is there a new way to access these sorts of methods? If this is described
> in the docs, I have missed it so far. Any thoughts would be appreciated.
>
> Thanks,
> Eric
>
>  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/a4acb0ab-765c-49f6-823c-66d1e1c76d3b%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/a4acb0ab-765c-49f6-823c-66d1e1c76d3b%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/CACGqRCA7ENkSGmYZ2THyiCtn%2B8_X5VNWsj1KeEf9GsDgyJQhjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to