Hi,

I am stuck with this.
I wanted to evaluate a function within a method.

Code:
function myfunc(){
 this.func = function(param){
  //code
  eval('this.func1');//This will not work
 }
 this.func1 = function(param){
  //code
 }
}

myvar = new myfunc();
myvar.func('aa');
My question is how should i know that the template has been set in myvar within the function myfunc()

Please help.