In JavaScript I have associative array of functions like this (like static field of a class):
functions={'name': function(){},'name':function(){}};
each function do something with array. I also have method:
this.doSomethind= function(name, array){//class member
I need to call one of the functions finding it by name.
$.each(functions, function(key, value) {
if(key == name)
//here I need to call function with array as paremeter. It seems value(array); doesn't work.
});
}
Sorry if it's a dumb question, I'm just new in JavaScript. Thanks