var toolbar = Polymer.dom(document).querySelector('#main-toolbar'

-------------------------
    
    var toolbar = document.querySelector('#main-toolbar');

--------------------------

    <paper-toolbar id="main-toolbar">


1) why does `document.querySelector` work on `paper-toolbar` when it's a 
shadow dom element? or another way to put it... why does it work on a 
element that is in local dom?

2) since both of these `querySelector` work, which is better to use?

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/07285585-7722-4dcd-9c8a-feaf1b196448%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to