You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/01/16 11:21:34 UTC

[jira] Created: (SLING-165) JavaScript: Support dynamic scopes

JavaScript: Support dynamic scopes
----------------------------------

                 Key: SLING-165
                 URL: https://issues.apache.org/jira/browse/SLING-165
             Project: Sling
          Issue Type: Improvement
          Components: Scripting
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: 2.0.0


By default Rhino does not support dynamic scopes. This means host objects may not be shared and instances of them bear no reference to the actual scope but retain the original scope of when the host object was defined. By enabling the dynamic scope feature in Rhino, this may be fixed.

This is partcularly important in our web application environment, where we setup global host objects which are used by many requests and should be able to refer to the currently "active" objects in the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-165) JavaScript: Support dynamic scopes

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-165.
-----------------------------------

    Resolution: Fixed

Fixed in Rev. 612408 by adding a Rhino ContextFactory which enables the dynamic scope feature globally.

> JavaScript: Support dynamic scopes
> ----------------------------------
>
>                 Key: SLING-165
>                 URL: https://issues.apache.org/jira/browse/SLING-165
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> By default Rhino does not support dynamic scopes. This means host objects may not be shared and instances of them bear no reference to the actual scope but retain the original scope of when the host object was defined. By enabling the dynamic scope feature in Rhino, this may be fixed.
> This is partcularly important in our web application environment, where we setup global host objects which are used by many requests and should be able to refer to the currently "active" objects in the request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.