MDL-20636 Finish making ddwtos work, mostly. Also various other JS fixes.
[moodle.git] / question / type / ddwtos / renderer.php
index 8f4362f..8be3eea 100644 (file)
@@ -127,7 +127,9 @@ class qtype_ddwtos_renderer extends qtype_elements_embedded_in_question_text_ren
 
 
     public function head_code(question_attempt $qa) {
-        require_js(array('yui_dom-event', 'yui_dragdrop'));
+        $this->page->requires->yui2_lib('dom');
+        $this->page->requires->yui2_lib('event');
+        $this->page->requires->yui2_lib('dragdrop');
         return parent::head_code($qa);
     }