From: Simon D. M. <di...@bi...> - 2000-12-11 23:20:28
|
> I was wondering the point of this line when inheriting objects: > > MyObject.prototype = new DynObject(); It's so that any changes to DynObject.prototype at runtime will be reflected in MyObject.prototype > Wouldn't it be better to say: > MyObject.prototype = DynObject.prototype I guess this would only create a pointer, so that changes to MyObject.prototype would affect DynObject.prototype SD |