From e863f00d4f292b9dea57534281a5d0830b34b563 Mon Sep 17 00:00:00 2001 From: portix Date: Thu, 22 Nov 2012 17:19:04 +0100 Subject: Delete module if second argument is omitted in replace --- api/dwb-js.7 | 2 +- api/jsapi.7.txt | 4 ++-- api/jsapi.txt | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'api') 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 <> but replaces the module if it was already defined. Same as <> 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. **** **** -- cgit v1.2.3