diff --git a/specs/elements.md b/specs/elements.md index f219ad0d4c7..99bd845dd8b 100644 --- a/specs/elements.md +++ b/specs/elements.md @@ -2,10 +2,6 @@ Sky DOM APIs ============ ```dart -SKY MODULE - - - ``` diff --git a/specs/events.md b/specs/events.md index 56416611497..8210e7f04a1 100644 --- a/specs/events.md +++ b/specs/events.md @@ -2,10 +2,6 @@ Sky Event Model =============== ```dart -SKY MODULE - - - ``` diff --git a/specs/gestures.md b/specs/gestures.md index e600705fb8f..6c1ccdcb8c6 100644 --- a/specs/gestures.md +++ b/specs/gestures.md @@ -2,10 +2,6 @@ Gestures ======== ```dart -SKY MODULE - - - ``` Gestures defined in the framework diff --git a/specs/modules.md b/specs/modules.md index 475ef9461a6..13c8ebb26b6 100644 --- a/specs/modules.md +++ b/specs/modules.md @@ -31,21 +31,36 @@ imported module: ``` +Each module implicitly imports the [Built-In Elements +Module](builtins.md). + +When a module imports another, and the ``import`` element has no +``as`` attribute, then any elements registered in that module whose +tag names do not begin with an underscore must be registered on the +importing module. (If multiple elements are registered with the same +name, that name gets marked as dead for that module and all the +registrations for that name are discarded.) + +TODO(ianh): decide if elements imported with "as" should be imported +but with the "as" name prefixed, as in ```` + Module API ---------- Each module consists of one or more libraries. The first library in a -module is the *element tree library*, which imports the dart:sky -module and then consists of the following code for a Sky module: +module is the *element tree library*, which consists of the following +code for a Sky module: ```dart +import 'dart:sky'; final Module module = new Module(); ``` ...and the following code for a Sky application: ```dart +import 'dart:sky'; final Module module = new Application(); ```