I will walk across the scenario about what i am trying to do:
I pass a function with parameter as a parameter to a function. This function will add an additional parameter to the passed function and then make a call to a function.
For ex:
funcA(function(){ funcB("add Me") }) // call to funcA
funcA : function( fn ){
var additionalParams = "add Me too"
}
funcB : function( str1,str2){ //gets me both strings }
I looked here and thought this is what i wanted but did not help.
Here is the jsfiddle i tried.