summaryrefslogtreecommitdiff
path: root/api/jsapi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'api/jsapi.txt')
-rw-r--r--api/jsapi.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt
index 7abdf176..278a1ffd 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -2186,9 +2186,7 @@ require(["foo!/path/to/foo"], function(foo) {
./path/to/foo
[source,javascript]
-------
-#!javascript
-
-provide("foo", { bar : 37 });
+provide("foo", { bar : 37; });
-------
The resolution chain is as follows, first all modules defined with +provide+ and
@@ -2204,7 +2202,7 @@ is ignored and the stored module will be resolved:
require(["foo!/path/to/foo"], function(foo) {
io.print(foo.bar); // 42
});
-provide("foo", { bar : 42 });
+provide("foo", { bar : 42; });
-------
[source,javascript]