Commit 4002105a authored by Elliott Sprehn's avatar Elliott Sprehn

console.error when using unknown attributes in templates.

Log an error whenever an element has an unknown attribute in a template.
This means you can't use generic attributes like Polymer, but we
probably want to discourage that anyway since attribute selectors should
be avoided for most things.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/845523004
parent d58e6de7
......@@ -162,7 +162,7 @@ module.exports.CityItemElement = class extends SkyElement {
}
</style>
<div id="scroller" fit>
<div id="scroller">
<div id="scrollarea">
<div id="contentarea">
</div>
......
......@@ -56,6 +56,12 @@
</template>
<script>
module.exports = class extends SkyElement {
created() {
this.myButton = null;
this.myCheckbox = null;
this.myText = null;
this.clickCount = 0;
}
attached() {
this.myButton = this.shadowRoot.getElementById('button');
this.myCheckbox = this.shadowRoot.getElementById('checkbox');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment