Subj : One JS object with two names (aliases) - how? PLZ HELP!!! To : netscape.public.mozilla.jseng From : Przemyslaw Jaskierski Date : Sat Mar 29 2003 02:20 pm I'm embending Rhino in my app. I need to have one, shared, synchronized instance of object that is accessible through two different object names. Like in this hierarchy: mainScope application (new child scope) document (new child scope, or anything you suggest) object1 object2 .... otherObject And now, declaring or modyfying ANY property or anything in document object MUST declare or modify the same in application object. Additionally otherObject MUST have ability to gain acces to document properties using application.XXX access. Normally I would implement application and document as references to the same object... But I can figure out how can I do this with Rhino. PLEASE HELP TIA .