diff options
Diffstat (limited to 'api/jsapi.7.txt')
-rw-r--r-- | api/jsapi.7.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt index 8bdb63e3..5c46d6c7 100644 --- a/api/jsapi.7.txt +++ b/api/jsapi.7.txt @@ -1291,9 +1291,7 @@ require(["foo!/path/to/foo"], function(foo) { ./path/to/foo ------- -#!javascript - -provide("foo", { bar : 37 }); +provide("foo", { bar : 37; }); ------- The resolution chain is as follows, first all modules defined with *provide* and @@ -1309,7 +1307,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] |