Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1981

Allow <map:call> to call any function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.2
    • - Flowscript
    • None
    • Patch available

    Description

      Currently, <map:call> can only call a function that is a property of the flowscript global scope itself. This patch allows it to call any function in the global scope, e.g. "foo.bar.baz".

      I provided this code change originally to Jeremy Quinn who committed it to BRANCH_2_1_X, but it has not yet been incorporated into trunk.

      The only additional thing I would suggest... would it be worth it to test if funName.contains ("."), and if so look up the function the old way? Don't know if that's significantly faster...

      Attachments

        1. 1981.patch
          2 kB
          Mark Lundquist

        Activity

          People

            Unassigned Unassigned
            mlundquist2@comcast.net Mark Lundquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: