Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: sky/specs/modules.md

Issue 730223002: Specs: default exports to {} rather than document, since it makes writing modules saner (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/specs/apis.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/modules.md
diff --git a/sky/specs/modules.md b/sky/specs/modules.md
index beb0e67d2b606229de148a65df1892756e56557d..fcd28790adb8f123436efa3d5a07d99dcd8bc743 100644
--- a/sky/specs/modules.md
+++ b/sky/specs/modules.md
@@ -35,9 +35,10 @@ the [``Module`` object](apis.md) that represents the module.
A module can export a value by assigning the ``exports`` property of
its ``Module`` object. By default, the ``exports`` property of a
-``Module`` is its ``Document`` object, so that a script-less
-import is still useful (it exposes its contents, e.g. templates that
-the import might have been written to provide).
+``Module`` is an empty Object. Properties can be added to the object,
+or, it can be set to an entirely different object; for example, it
+could be set to the module's Document itself, in case the point of the
+module is to expose some ``template`` elements.
### Exporting element definitions ###
« no previous file with comments | « sky/specs/apis.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698