I have some code whose structure I cannot change. And functions defined in such a manner.
var Something.someFunc = function(e){
function funcTwo(){
}
...
...
...
...
}
I need to call funcTwo from outside of this structure. How do I go about doing it ? Someone suggested that i would have to use the".prototype" property but I cannot get this to work.
Anyone have a suitable solution, as i cannot change the structure of the code.
Something.someFuncAnd what is someFunc? Are you creating objects withnew Somthing.someFunc()?