summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorportix <none@none>2012-06-02 12:30:00 +0200
committerportix <none@none>2012-06-02 12:30:00 +0200
commite211f67a259d70b738920a6e2b053097e42bc31c (patch)
tree98e5f37bb39081c9e1d8744baf08e9ee54a3aba7 /api
parentd11cd142c112dbc9485c542cf0c835ea133a3717 (diff)
downloaddwb-e211f67a259d70b738920a6e2b053097e42bc31c.zip
Fixing searchengine forms not submitted if the form has a childnode with name
'submit'; adding util.js.
Diffstat (limited to 'api')
-rw-r--r--api/jsapi.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt
index b979a022..4bc18834 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -607,6 +607,31 @@ tabs.nth(2).loadUri(c.uri);
----
====
+
+[[util]]
+=== util ===
+
+The +util+ object implements helper functions.
+
+****
+[float]
+==== *getBody(Function)* ====
+
+[source,javascript]
+----
+String util.getBody(Function func)
+----
+
+Gets the body of a function, useful for scripts that will be injected into
+sites.
+
+ ::
+
+_func_;; A function
+_returns_;; The body of the function as a string
+****
+
+
[[Webkitobjects]]
== Webkit objects ==