Skip to content

Commit

Permalink
Embed question: remove use of YUI in the JavaScript #787664
Browse files Browse the repository at this point in the history
  • Loading branch information
Khoa Nguyen authored and timhunt committed Jul 15, 2024
1 parent 7de99f9 commit 0aa453c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion amd/build/question.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/question.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions amd/src/question.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @copyright 2018 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
define([], function() {
define(['core_form/changechecker',], function(FormChangeChecker) {
var t = {
/**
* The last height we set on the iframe, so we only try to change it when it changes.
Expand Down Expand Up @@ -62,9 +62,7 @@ define([], function() {
}
});

Y.use('moodle-core-formchangechecker', function() {
M.core_formchangechecker.init({formid: 'responseform'});
});
FormChangeChecker.watchFormById('responseform');
},

/**
Expand Down

0 comments on commit 0aa453c

Please sign in to comment.