summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-21 23:22:00 +0200
committerportix <portix@gmx.net>2013-05-21 23:22:00 +0200
commit1c4df5b523d23ad4b1c525de10621fb8fedb677e (patch)
treee4aff1745a952ac7af25898e1f3d4881f0ddce85
parent03f09e4a4abfcf2ae40d7500c1c900a0ca3e5fd5 (diff)
downloaddwb-1c4df5b523d23ad4b1c525de10621fb8fedb677e.zip
Rename archive -> exports
-rw-r--r--src/scripts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 75027ab5..df4691ea 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -48,7 +48,7 @@
#define kJSDefaultAttributes (kJSPropertyAttributeDontDelete | kJSPropertyAttributeReadOnly )
#define SCRIPT_TEMPLATE_START "try{_initNewContext(this,arguments,'%s');const script=this;/*<dwb*/"
-#define SCRIPT_TEMPLATE_XSTART "try{var archive=arguments[0];_initNewContext(this,arguments,'%s');var xinclude=_xinclude.bind(this,this.path);const script=this;/*<dwb*/"
+#define SCRIPT_TEMPLATE_XSTART "try{var exports=arguments[0];_initNewContext(this,arguments,'%s');var xinclude=_xinclude.bind(this,this.path);const script=this;/*<dwb*/"
#define SCRIPT_TEMPLATE_END "%s/*dwb>*/}catch(e){script.debug(e);};"
@@ -1880,7 +1880,7 @@ error_out:
* possible to include scripts from an archive calling the internal function
* _xinclude which takes two parameters, the path of the archive and the path of
* the included file in the archive.
- * All scripts in an archive share on object <b>archive</b> which can be used
+ * All scripts in an archive share on object <b>exports</b> which can be used
* to share data between scripts in an archive.
*
* Unlike {@link include} included archive-scripts cannot be included into the
@@ -1909,10 +1909,10 @@ error_out:
* function getFoo() {
* return 37;
* }
- * archive.getFoo = getFoo;
+ * exports.getFoo = getFoo;
*
* // content/bar.js
- * var x = archive.getFoo();
+ * var x = exports.getFoo();
*
* */