Tapestry
  1. Tapestry
  2. TAPESTRY-2334

Optimize JavaScript generation for FormInjector

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.12
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Most of the time, the JSON Object passed to Tapestry.initializeFormInjectors() contains just a single property, "element".

      initializeFormInjectors() should be changed so that if a value is just a string, it is treated the same as a JSON object with just an element property. This would be more succinct and readable.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.12 [ 12313048 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12428268 ] Default workflow, editable Closed status [ 12568674 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568674 ] jira [ 12590105 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development