I have tried hard looking for a solution for this issue, found kind of strange that this question wasn't asked before here:
var A = function(){
this.timeLength = 5;
}
A.prototype.info = {
type: 'video',
duration: function(){ return this.timeLength;}
}
var AInst = new A();
AInst.info.duration(); // is giving undefined
How to write this in the way to make it access the instance property?