I am trying to understand a piece of code. In a javascrpit file,
there is a function:
function ItemStyle(){
var names=['len','spacing' ,'popInd','popP os','pad','outC ol','overCol',' outClass','over Class','outBord er','overBorder ','outAlpha','o verAlpha','norm Cursor','nullCu rsor'];
addProps(this,a rguments,names, true);
};
In the html file, it calls the function as:
var hBar = new ItemStyle(40, 10, '', 0, 0, '10#336699', '10#6699CC',
'highText', 'highText', '', '',
null, null, 'hand', 'default');
How can it pass the 15 arguments to the function when the function
does not have parameters?
there is a function:
function ItemStyle(){
var names=['len','spacing' ,'popInd','popP os','pad','outC ol','overCol',' outClass','over Class','outBord er','overBorder ','outAlpha','o verAlpha','norm Cursor','nullCu rsor'];
addProps(this,a rguments,names, true);
};
In the html file, it calls the function as:
var hBar = new ItemStyle(40, 10, '', 0, 0, '10#336699', '10#6699CC',
'highText', 'highText', '', '',
null, null, 'hand', 'default');
How can it pass the 15 arguments to the function when the function
does not have parameters?
Comment