Skip to content

Instantly share code, notes, and snippets.

@JanMiksovsky
Created May 29, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanMiksovsky/16f7f5f2fc5cca95fda1 to your computer and use it in GitHub Desktop.
Save JanMiksovsky/16f7f5f2fc5cca95fda1 to your computer and use it in GitHub Desktop.
Repro case for Polymer 1.0 element which can't be instantiated in Shady DOM
<!--
Repro case for bug that appears under Shady DOM.
Attempting to instantiate this component will trigger an exception. Both the
hostAttributes and the property change observer appear necessary to trigger the
exception.
-->
<link rel="import" href="../bower_components/polymer/polymer.html">
<script>
Polymer({
hostAttributes: {
target: 'foo'
},
is: 'repro-element',
properties: {
target: {
value: null,
observer: 'targetChanged'
}
},
targetChanged: function(value) {
console.log("target: " + value);
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment