Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-895

Adding general JS functions to avoid using eval

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • 3.9
    • Kernel
    • None

      Add three new functions to the Ametys singleton object:

      • getObjectByName
      • createObjectByName
      • executeFnByName

      which are helpful to retrieve an object or execute a function (or constructor) when we only have the name of the object as a String.

      I attach a possible patch to this issue.

          [RUNTIME-895] Adding general JS functions to avoid using eval

          Laurence Aumeunier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Thibaut Rizzi (Inactive) made changes -
          Fix Version/s New: 3.7_LTE [ 11281 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Thibaut Rizzi (Inactive) made changes -
          Link New: This issue blocks CMS-4392 [ CMS-4392 ]
          Thibaut Rizzi (Inactive) made changes -
          Assignee New: Thibaut Rizzi [ trizzi ]
          Thibaut Rizzi (Inactive) created issue -

            trizzi Thibaut Rizzi (Inactive)
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: