MDL-21400 finalising JS api - removing ->on_dom_ready (now bool param in js() and...
[moodle.git] / mod / lesson / lib.php
index 3ed5bde..bee4770 100644 (file)
@@ -1037,7 +1037,7 @@ function lesson_get_media_html($lesson, $context) {
         $code = resourcelib_embed_general($url, $title, $clicktoopen, $mimetype);
         $PAGE->requires->yui2_lib('dom');
         $PAGE->requires->js('/mod/url/functions.js');
-        $PAGE->requires->js_function_call('imscp_setup_object')->on_dom_ready();
+        $PAGE->requires->js_function_call('imscp_setup_object', null, true);
     }
 
     return $code;