Given a very simple js object constructor and its prototype...
function MyTest(name)
{
this.name = name;
}
MyTest.prototype =
{
getName: function()
{
var myName = this.name;
return myName;
},
myMethod: function()
{
//
}
}
Now, in myMethod, is there any difference between using "this.getName" and "this.name"?
Thanks