summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorportix <none@none>2012-11-12 01:17:42 +0100
committerportix <none@none>2012-11-12 01:17:42 +0100
commit2d081f63c526c80ebfaa6c7ec8dd172a0fc27f0c (patch)
tree4c00a828cea23e32166675a93312a9aef02e709c /api
parent764a3a9fc73810452ba8a0d7c3c8b44c695218a9 (diff)
downloaddwb-2d081f63c526c80ebfaa6c7ec8dd172a0fc27f0c.zip
Implementing Function.curry
Diffstat (limited to 'api')
-rw-r--r--api/dwb-js.720
-rw-r--r--api/jsapi.7.txt5
-rw-r--r--api/jsapi.txt12
3 files changed, 35 insertions, 2 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7
index 1513114c..93f15b9a 100644
--- a/api/dwb-js.7
+++ b/api/dwb-js.7
@@ -2,12 +2,12 @@
.\" Title: dwb-js
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
-.\" Date: 11/11/2012
+.\" Date: 11/12/2012
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
-.TH "DWB\-JS" "7" "11/11/2012" "\ \&" "\ \&"
+.TH "DWB\-JS" "7" "11/12/2012" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -1070,6 +1070,22 @@ The property value
A local object to identify the calling script, the identifier must either be of type Object or of type Function\&.
.RE
.RE
+.sp
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBFunction Function.curry([arg1, \&..., argn])\fR
+.RS 4
+.sp
+Returns a copy of function with first n values preassigned\&.
+.PP
+\fIarg[n]\fR
+.RS 4
+Arguments that will be preassigned in the new function, optional\&.
+.RE
+.RE
.SH "WEBKIT OBJECTS"
.sp
All webkit objects correspond to gobject objects, i\&.e\&. they have the same properties, but the javascript properties are all camelcase\&. For example, a WebKitWebView has the property \fBzoom\-level\fR, the corresponding javascript property is \fBzoomLevel\fR:
diff --git a/api/jsapi.7.txt b/api/jsapi.7.txt
index a07c4897..e4e945eb 100644
--- a/api/jsapi.7.txt
+++ b/api/jsapi.7.txt
@@ -488,6 +488,11 @@ _identifier_;; A local object to identify the calling script, the identifier
must either be of type Object or of type Function.
****
+==== Function Function.curry([arg1, ..., argn])
+
+Returns a copy of function with first n values preassigned.
+
+_arg[n]_;; Arguments that will be preassigned in the new function, optional.
diff --git a/api/jsapi.txt b/api/jsapi.txt
index 992423f8..10c36ce2 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -914,6 +914,18 @@ signals.connect("loadFinished", function(wv) {
------------
====
+****
+[[curry]]
+[float]
+==== *Function.curry()* ====
+[source,javascript]
+----
+Function Function.curry([arg1, ..., argn])
+----
+Returns a copy of function with first n values preassigned.
+
+_arg[n]_;; Arguments that will be preassigned in the new function, optional.
+****