I am finally figuring objects out - yay :)  If I use a constructor to
create a new object (car), I can refer to its properties and methods
from within that object with "this" (this.model).  If I set one if its
properties (this.engine) to another new object (new engine()), is
there a standard way to refer back to properties/methods in the parent
object from within this new object (this.parent.model) ?  I've been
passing a reference to the new object (new engine(this)  -- engine =
function(root){ this.root = root;} ) so I can get at methods easily,
but that seems messy.  I don't like the thought of circular references
even if they are benign :)

Reply via email to