File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,18 @@ Glossary
6
6
.. glossary ::
7
7
:sorted:
8
8
9
+ hook
10
+ A function that handles work delegated to a :term: `module ` by the
11
+ :term: `application `. A hook function can return a value or a
12
+ :term: `Promise `. The arguments to hook functions can vary. See
13
+ :ref: `module-hooks ` for a description of the core hooks provided by
14
+ Annotator.
15
+
16
+ module
17
+ A module extends the functionality of an :term: `application `, primarily
18
+ through :term: `hook ` functions. See the section :doc: `module-development `
19
+ for details about writing modules.
20
+
9
21
Promise
10
22
An object used for deferred and asynchronous computations.
11
23
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Module development
4
4
The basics
5
5
----------
6
6
7
- An Annotator module is a function that can be passed to
7
+ An Annotator :term: ` module ` is a function that can be passed to
8
8
:func: `~annotator.App.prototype.include ` in order to extend the functionality of
9
9
an Annotator application.
10
10
You can’t perform that action at this time.
0 commit comments