var Base = function() {};
var Map = function() {};
Base.prototype = {
init : function() {
alert(this.save());
},
save : function() {
return('Base.save');
}
}
Map.prototype = {
init : function() {
alert(this.save());
},
save : function() {
return('Map.save');
}
}
Base.init = function(object) {
return new object().init();
}
Base.init(Base);
Base.init(Map);