So, what's your expected? As you know, any object you create in global
name space will be accessible as a property of global object.

On 1月22日, 下午10时21分, Andrey Semashev <[email protected]> wrote:
> BTW, this is how I create the needed scope hierarchy:
>
>   var Session = new Function();
>   var Application = new Function();
>   var Document = new Function();
>   var Dialog = new Function();
>
>   var session = new Session();
>   Application.prototype = session;
>
>   session.application = new Application();
>   Document.prototype = session.application;
>
>   session.application.document = new Document();
>   Dialog.prototype = session.application.document;
>
>   session.application.document.dialog = new Dialog();

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to