rem: initLayout.setParentLayout(res.handlers.layout); 
add: initLayout.setParentLayout(root.getLayout()); 
context: function evalNewSite(title, alias, creator) {   // check alias   if (!alias)      throw new Exception("siteAliasMissing");   else if (this.get(alias))      throw new Exception("siteAliasExisting");   else if (!alias.isClean())      throw new Exception("siteAliasNoSpecialChars");   else if (alias.length > 30)      throw new Exception("siteAliasTooLong");   else if (this[alias] || this[alias + "_action"])      throw new Exception("siteAliasReserved");   // check if title is missing   if (!title)      throw new Exception("siteTitleMissing");   // create new Site   var newSite = new Site(title, alias, creator);   // create an initial layout object that is a child layout   // of the currently active root layout   var initLayout = new Layout(newSite, newSite.title, creator);   initLayout.alias = newSite.alias;   initLayout.setParentLayout(res.handlers.layout);   if (!this.add(newSite))      throw new Exception("siteCreate");   newSite.layouts.add(initLayout);   newSite.layouts.setDefaultLayout(initLayout.alias);   // add the creator to the admins of the new Site   newSite.members.add(new Membership(creator, ADMIN));   root.manage.syslogs.add(new SysLog("site", newSite.alias, "added site", creator));   return new Message("siteCreate", null, newSite);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/dba0f46ebec6fae37064bf20a8f431177fd84791/objectFunctions.js/clean/code/Root/objectFunctions.js