Details

    • Affected Branches:
      MOODLE_26_STABLE

      Description

      At present, we put all of our JavaScript into a number of namespaces, which are not well codified. These include:

      M.<frankenstyle_subsystem>
      M.<frankenstyle_subsystem>.<sub_subsystem>
      M.something_random
      Y.Moodle.<frankenstyle_subsystem>
      

      (and various other variants)

      To benefit fully from YUI module sandboxing, we should register all of our Modules in the Y namespace, and we should take the opportunity to agree on a codified specification for this.

      I've created a proposal at http://docs.moodle.org/dev/YUI/Namespacing to begin discussion.

      This is essentially:

         Y.M.<plugin_or_system_type>[_<component>].<YUI_modulename>[.<YUI_submodule>]
      

      I went for Y.M, rather than Y.Moodle to keep the length low.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              dobedobedoh Andrew Nicols
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Andrew Nicols, Eloy Lafuente (stronk7), Juan Leyva, Jun Pataleta, Sander Bangma
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: