summaryrefslogtreecommitdiff
path: root/doc/api/jsapi.7.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/jsapi.7.txt')
-rw-r--r--doc/api/jsapi.7.txt19
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/api/jsapi.7.txt b/doc/api/jsapi.7.txt
index 21723ea0..7f90a62f 100644
--- a/doc/api/jsapi.7.txt
+++ b/doc/api/jsapi.7.txt
@@ -930,15 +930,18 @@ _wv.tabLabel (GtkLabel, read)_;; Text label of a tab, child of *wv.tabBox*.
-==== String wv.inject(String script, [Object argument], [Boolean global])
+==== String wv.inject([String code|Function code], [Object arg], [Boolean global])
****
Injects a script into a webview
-_script_;; The script to inject
-_argument_;; If the script isn't injected into the global scope the script is
-wrapped inside a function. argument then is accesible via
+_code_;; The script to inject, either a string or a function. If it is a
+function the body will be wrapped inside a new function.
+_arg_;; If the script isn't injected into the global scope the script is
+wrapped inside a function. 'arg' then is accesible via
'arguments' in the injected script, optional
+_line_;; Starting line number, useful for debugging. If linenumber is
+greater than 0 error messages will be printed to stderr, optional.
_global_;; true to inject it into the global scope, false to encapsulate it
in a function, optional
_returns_;; The return value of the script. If the script is injected globally
@@ -1789,6 +1792,14 @@ Same as io.debug but also prints additional information, e.g. if the object is
an Error, this method will also print the corresponding source of the error.
****
+==== String script.generateId()
+****
+
+Generates a unique id.
+
+_returns_;; A unique id.
+****
+
==== void script.getPrivate(Object object, String key)
****