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

Adding general JS functions to avoid using eval

XMLWordPrintable

    • 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.

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

              Created:
              Updated:
              Resolved: