I have the following code:
function MyFunction () {
this.my_method1 = function () {};
this.my_method2 = function () {};
}
How can I access this.my_method1 in this.my_method2. I have tried using:
- this.my_method1()
- MyFunction.my_method1()
- my_method1()
but none seem to work. Help?