Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43190

Improve the javascript coding style guidelines

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6
    • None
    • Documentation
    • MOODLE_26_STABLE

    Description

      I think that the current javascript coding style guidelines should be improved with clear rules and differences between PHP and Javascript style:

      http://docs.moodle.org/dev/JavaScript_guidelines#JavaScript_coding_style

      I have seen some inconsistencies in core code, i.e variables that are a result of calling a yui function named like style myVar = Y.something

      Attachments

        1. returnvalues
          3 kB
          Andrew Lyons
        2. strict-type-checking.txt
          2 kB
          Andrew Lyons

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              jleyva Juan Leyva
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: