MDL-21591 fixed regression in JS calls
authorPetr Skoda <skodak@moodle.org>
Sun, 14 Feb 2010 08:56:57 +0000 (08:56 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 14 Feb 2010 08:56:57 +0000 (08:56 +0000)
lib/outputrequirementslib.php

index 9a9c684..73e9b20 100644 (file)
@@ -725,7 +725,7 @@ class page_requirements_manager {
         $output = '';
         if ($this->jscalls[$where]) {
             foreach ($this->jscalls[$where] as $data) {
-                $output = js_writer::function_call($data[0], $data[1], $data[2]);
+                $output .= js_writer::function_call($data[0], $data[1], $data[2]);
             }
             if (!empty($ondomready)) {
                 $output = "    Y.on('domready', function() {\n$output\n    });";