Specs: default exports to {} rather than document, since it makes writing modules saner

Review URL: https://codereview.chromium.org/730223002
This commit is contained in:
Hixie 2014-11-17 13:08:09 -08:00
parent fe9b9d21d4
commit 48b49a8cbe
2 changed files with 1 additions and 5 deletions

View File

@ -21,7 +21,7 @@ SKY MODULE - defines an <element> element
<script>
module.exports.Element = sky.registerElement({
tagName: 'element',
prototype: class extends Element {
constructor: class extends Element {
constructor (module) {
super();
this.state = 'loading';

View File

@ -1,10 +1,6 @@
SKY MODULE - radio button and radio button group
<!-- accessibility handling not implemented yet, pending mojo service -->
<script>
module.exports = {};
</script>
<!-- <radio> -->
<template id="radio-shadow">
<style>