Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1705

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.13-core
    • None
    • Components
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            arobinson74 Andrew Robinson
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: