How to call a function via string within a class?

```
$.fn.myApp = function (options){
  function myFunc(){
    //do something
  }
  window["myFunc"](); //not working
  $.fn.myApp["myFunc"](); //not working
}

```