DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR. Enter additional information related to this 'class' inside the {div} macro with 'id=description'
...
id
description
...
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClientservoy sSummary12%30%58%height: 30px;3Property SummarySpecifies the function that creates an object's prototype.
Specifies the number of arguments expected by the function.
...
servoy sSummary
...
padding
0px
width
80px
...
12%30%58%height: 30px;
...
Table Head (th)
colspan
2
Method Summary
...
Table Cell (td)
void
...
3Methods SummaryvoidApplies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.
...
void
...
Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.
function addNumbers(x, y){
if (addNumbers.length == 2) {
return (x + y);
} else
return 0;
}
Table Row (tr)
class
lastDetailRow
Table Cell (td)
...
id
function
class
servoy sDetail
...
padding
0px
width
100%
Table Row (tr)
style
height: 30px;
Table Head (th)
colspan
1
Method Details
...
id
apply
Table Row (tr)
id
name
Table Cell (td)
apply
Table Row (tr)
id
sig
Table Cell (td)
Span
style
margin-right: 5px;
void
Span
style
font-weight: bold;
apply
Span
()
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.
Table Row (tr)
id
ret
Table Cell (td)
Returns
Div
class
sIndent
void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
function book(name, author) {
this.name = name;
this.author = author;
}
function book_with_topic(name, author, topic) {
this.topic = topic;
book.apply(this, arguments);
}
book_with_topic.prototype = new book();
var aBook = new book_with_topic("name","author","topic");
...
class
lastDetailRow
...
id
bind
Table Row (tr)
id
name
Table Cell (td)
bind
Table Row (tr)
id
sig
Table Cell (td)
Span
style
margin-right: 5px;
void
Span
style
font-weight: bold;
bind
Span
()
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.
Table Row (tr)
id
ret
Table Cell (td)
Returns
Div
class
sIndent
void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
var x = 9,
module = {
getX: function() {
return this.x;
},
x: 81
};
// "module.getX()" called, "module" is "this", "module.x" is returned
module.getX(); // > 81
// "getX()" called, "this" is global, "x" is returned
getX(); // > 9
// store a reference with "module" bound as "this"
var boundGetX = getX.bind(module);
// "boundGetX()" called, "module" is "this" again, "module.x" is returned
boundGetX(); // > 81
...
class
lastDetailRow
...
id
call
Table Row (tr)
id
name
Table Cell (td)
call
Table Row (tr)
id
sig
Table Cell (td)
Span
style
margin-right: 5px;
void
Span
style
font-weight: bold;
call
Span
()
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.
Creates a new function which, when called, itself calls this function in the context of the provided value, with a given sequence of arguments preceding any provided when the new function was called.