C
Cartoper
I have this book "Beginning JavaScript for Practical Web Development,
Including AJAX" and in it the author is using javascript syntax I
don't understand. It is
<class name>={
<function name>:function(params)
{
},
<function name>:function(params)
{
},
};
Here is a snippet of the actual code:
DOMhelp={
debugWindowId:'DOMhelpdebug',
init:function(){
// removed
},
lastSibling:function(node){
// removed
},
}
Are these static functions of the class DOMhelp or is something else
going on? Can someone provide me with a link that will expain this
notiation to me?
Cartoper
Including AJAX" and in it the author is using javascript syntax I
don't understand. It is
<class name>={
<function name>:function(params)
{
},
<function name>:function(params)
{
},
};
Here is a snippet of the actual code:
DOMhelp={
debugWindowId:'DOMhelpdebug',
init:function(){
// removed
},
lastSibling:function(node){
// removed
},
}
Are these static functions of the class DOMhelp or is something else
going on? Can someone provide me with a link that will expain this
notiation to me?
Cartoper