Skip to content

Instantly share code, notes, and snippets.

@tomalec
Last active August 29, 2015 13:56
Show Gist options
  • Save tomalec/8999326 to your computer and use it in GitHub Desktop.
Save tomalec/8999326 to your computer and use it in GitHub Desktop.
<polymer-element name="x-foo">
<template><content></content></template>
<script>
Polymer('x-foo',{
attached: function(){
this.async(function() {
debugger;
console.log(this.childElementCount + "/" + this.shadowRoot.querySelector('content').getDistributedNodes().length );
});
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment