M
Montezuma's Daughter
Thank you for your preveious help in the JS forum
can you help my to understand why it is still doesn't work?
I am trying to make a usefull func (ActivateFuncOnObjects3) which can
recieve a list ("obj1,obj2") and activate different func on every
object of the list
thanks
function DisableF2()
{
OBJECT(text).disabled=true;
}
function ActivateFuncOnObjects3(list,Callbackfunction)
{
return function() { Callbackfunction(text); };
}
function ActivateFuncOnObjectsFromList(list,fn)
{
var arr = list.split(',');
for(var i=0;i<arr.length;i++)
{
fn(arr);
}
}
var list='obj1,obj2';
var v3 = ActivateFuncOnObjects3(list,DisableF2)
ActivateFuncOnObjectsFromList(list,v3);
can you help my to understand why it is still doesn't work?
I am trying to make a usefull func (ActivateFuncOnObjects3) which can
recieve a list ("obj1,obj2") and activate different func on every
object of the list
thanks
function DisableF2()
{
OBJECT(text).disabled=true;
}
function ActivateFuncOnObjects3(list,Callbackfunction)
{
return function() { Callbackfunction(text); };
}
function ActivateFuncOnObjectsFromList(list,fn)
{
var arr = list.split(',');
for(var i=0;i<arr.length;i++)
{
fn(arr);
}
}
var list='obj1,obj2';
var v3 = ActivateFuncOnObjects3(list,DisableF2)
ActivateFuncOnObjectsFromList(list,v3);