I read "Good Parts", and it use Object#beget to implement prototypal inheritance. beget = function (o) { f = function () {}; f.prototype = o; return new f(); }
a = {... object literal ...}; b = Object.beget(a); It can build a prototype link when a object is created. But if I want to dynamically change the prototype link of a object? (In fact, I doubt that I really understand what prototype is...) -- Lai, Yu-Hsuan -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a non-Google archive, visit here: http://www.mail-archive.com/jsmentors@googlegroups.com/ To unsubscribe from this group, send email to jsmentors+unsubscr...@googlegroups.com