I have an array of functions and also I am using a dynatree plugin inside it.
Example:
fn1: function(){
.....
}),
fn2: function(){
.....
}),
fn3: { param1: xValue, param2: yValue }
Now I would like to add a function in fn3 like,
fn3: fn3a
//In fn3a
function fn3a(){
//Based on condition add values.
if...
param1: xValue, param2: yValue
else...
param1: xValue, param2: zValue
}
How can I define those params in {…} in function.
Please suggest.
Thanks in advance.
Don’t really know if this is what you’re looking for, but maybe it’s a start: