{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\
{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Function]{td}{td}[#constructor]
Specifies the function that creates an object's prototype.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#length]
Specifies the number of arguments expected by the function.{td}{tr}{tbody}{table}\\
{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#apply]()
Applies the method of another object in the context of a different object (the calling object); arguments can be passed as an Array object.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#bind]()
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.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#call]()
Calls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#toString]()
Returns a string representing the source code of the function.{td}{tr}{tbody}{table}\\
{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=constructor|class=node}{tr:id=name}{td}
h6. constructor{td}{tr}{tr:id=des}{td}{sub-section:constructor_des|text=|trigger=button}{sub-section}{sub-section:constructor_des|trigger=none|class=sIndent}
Cache
index
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 sSummary12%30%58%height: 30px;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.voidCreates 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.voidCalls (executes) a method of another object in the context of a different object (the calling object); arguments can be passed as they are.Returns a string representing the source code of the function.propertyservoy sDetail2100%height:30px2Property Detailsconstructorname
constructor
dessIndent
Specifies the function that creates an object's prototype.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:constructor_snc|text=|trigger=button}{sub-section}{sub-section:constructor_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:constructor_prs|text=|trigger=button}{sub-section}{sub-section:constructor_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}{*}Returns*
\\ {sub-section:constructor_ret|text=|trigger=button}{sub-section}{sub-section:constructor_ret|trigger=none|class=sIndent}[Function]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:constructor_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:constructor_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:constructor_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:constructor_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}{*}Sample*
\\ {sub-section:constructor_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:constructor_sam|trigger=none}{code:language=javascript}
function Tree(name) {
this.name = name;
}
theTree = new Tree("Redwood");
application.output("theTree.constructor is " + theTree.constructor);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=length|class=node}{tr:id=name}{td}
h6. length{td}{tr}{tr:id=des}{td}{sub-section:length_des|text=|trigger=button}{sub-section}{sub-section:length_des|trigger=none|class=sIndent}ret
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.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:bind_snc|text=|trigger=button}{sub-section}{sub-section:bind_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:bind_prs|text=|trigger=button}{sub-section}{sub-section:bind_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}{*}Returns*
\\ {sub-section:bind_ret|text=|trigger=button}{sub-section}{sub-section:bind_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:bind_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bind_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:bind_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bind_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}{*}Sample*
\\ {sub-section:bind_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:bind_sam|trigger=none}{code: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
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=call|class=node}{tr:id=name}{td}
h6. call{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}call{span}{span:id=iets|style=float: left;}(){span}{td}{tr}{tr:id=des}{td}{sub-section:call_des|text=|trigger=button}{sub-section}{sub-section:call_des|trigger=none|class=sIndent}clients