diff options
author | portix <portix@gmx.net> | 2012-11-22 17:19:04 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-22 17:19:04 +0100 |
commit | e863f00d4f292b9dea57534281a5d0830b34b563 (patch) | |
tree | 4689334093d91fbda31635eedd5e9dd1714dbf07 /api | |
parent | b5df95d93b058d909a75497cede97e11631564a9 (diff) | |
download | dwb-e863f00d4f292b9dea57534281a5d0830b34b563.zip |
Delete module if second argument is omitted in replace
Diffstat (limited to 'api')
-rw-r--r-- | api/dwb-js.7 | 2 | ||||
-rw-r--r-- | api/jsapi.7.txt | 4 | ||||
-rw-r--r-- | api/jsapi.txt | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7 index 88105a28..9a323d9f 100644 --- a/api/dwb-js.7 +++ b/api/dwb-js.7 @@ -252,7 +252,7 @@ Name of the module .PP \fImodule\fR .RS 4 -The module +The module, if omitted the module will be deleted, all references to that module will reference an empty object afterwards, optional\&. .RE .RE .sp diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt index 8a13d57c..86cfff58 100644 --- a/api/jsapi.7.txt +++ b/api/jsapi.7.txt @@ -126,7 +126,8 @@ _module_;; The module Same as provide but replaces the module if it was already defined. _name_;; Name of the module -_module_;; The module +_module_;; The module, if omitted the module will be deleted, all references to +that module will reference an empty object afterwards, optional. **** ==== void require(Array names, Function callback) @@ -142,7 +143,6 @@ names array. If *names* is null the function is called with one parameter that contains all modules, see also MODULES for examples. **** - ==== void sendRequest(String uri, Function callback, [String method]) **** diff --git a/api/jsapi.txt b/api/jsapi.txt index 44e4e5c6..36824f2d 100644 --- a/api/jsapi.txt +++ b/api/jsapi.txt @@ -149,12 +149,14 @@ _module_;; The module void replace(String name, Object module) ---- +Same as <<provide>> but replaces the module if it was already defined. Same as <<provide>> but replaces the module if it was already defined. :: _name_;; Name of the module -_module_;; The module +_module_;; The module, if omitted the module will be deleted, all references to +that module will reference an empty object afterwards, optional. **** **** |