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

Missing semicolon in yui_module JS code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Libraries
    • Labels:

      Description

      Missing semicolon when the yui_module function is called and $ondomready is false. This creates big problems if you follow that statement with javascript like this: (function(Y)

      { ...do something... }

      )(Y); Because it then thinks you are trying to call the yui_module code as a function. Attaching patch for the fix.

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              bushido Mark Nielsen
              Integrator:
              Sam Hemelryk
              Tester:
              Marina Glancy
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                1/Aug/11