Created
May 29, 2015 22:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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