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

        Hide
        Howard M. Lewis Ship added a comment -

        This turned into a big refactoring of how JavaScript initialization code gets generated. Came out nice!

        Show
        Howard M. Lewis Ship added a comment - This turned into a big refactoring of how JavaScript initialization code gets generated. Came out nice!

          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