MyFaces Trinidad
  1. MyFaces Trinidad
  2. TRINIDAD-1705

Refactor Trinidad's JavaScript under a namespace and remove all global functions

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.13-core
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      Trinidad's JavaScript is hard to work with, there are many global functions that could cause collisions with other javascript libraries and the files are not named in such a way that makes maintenance easy (finding where code can be found).

      It would be nice to have a global "Trinadad" object (or just "Tr" if we can get away with it) with all the objects under it much in the same way JSF 2 has done jsf and jsf.ajax. Just looking at Core.js one can see the vast number of global variables

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Robinson
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development