Possible Duplicate:
Constructors in Javascript objects
I have a simple JS object such as the following:
MyObj = {
    var: 'text',
    fn1: function(){
    },
    fn1: function(){
    }
}
Is there a default function such as _init() or _construct() that is executed when the object is initialized at runtime?
 
    