module.exports should default to an empty object.
Per the spec in modules.md the exports property should default to an empty object. We lazy allocate it so that modules that just replace it don't create the empty object and then throw it away. R=abarth@chromium.org Review URL: https://codereview.chromium.org/872043003
This commit is contained in:
parent
8260024b38
commit
66e6949f46
@ -7,11 +7,6 @@
|
|||||||
<import src="city-data-service.sky" as="CityDataService" />
|
<import src="city-data-service.sky" as="CityDataService" />
|
||||||
<import src="city-sequence.sky" as="CitySequence" />
|
<import src="city-sequence.sky" as="CitySequence" />
|
||||||
|
|
||||||
<script>
|
|
||||||
// TODO(esprehn): exports should start as the empty object.
|
|
||||||
module.exports = {};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<sky-element name="state-header">
|
<sky-element name="state-header">
|
||||||
<template>
|
<template>
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user