Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-2304

Key objects passed to Rhino context should be Scriptable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0 Enterprise, 3.1 Enterprise, 3.2 Community, 3.2 Enterprise, 3.3 Community
    • Fix Version/s: None
    • Component/s: JavaScript API
    • Labels:
      None
    • Resolution Time Custom Field:
      303 weeks, 16 hours, 28 minutes, 7 seconds

      Description

      Currently, we pass in several objects to the rhino context, such as ScriptUtils (as utils). These are passed in as normal Java classes, which means various extra Java methods are available on them, and they can show up a little oddly in debuggers etc

      If we make these objects implement Scriptable from Rhino, then they show up as normal javascript objects, and these issues go away

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                nburch Nick Burch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m

                    Structure Helper Panel