mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 23:07:27 +02:00
The original workaround was put in place to address the mathjax.sre.js bug that was causing JS errors as explained in https://github.com/mathjax/MathJax/issues/1854). However, since MathJax 2.7.3, the underlying problem has been fixed, making the workaround unnecessary. Additionally, the workaround was causing conflicts with some jQuery plugins. Removing the workaround has resolved the problem of jQuery plugins failing to load properly.
26 lines
802 B
JavaScript
26 lines
802 B
JavaScript
var require = {
|
|
baseUrl : '[BASEURL]',
|
|
// We only support AMD modules with an explicit define() statement.
|
|
enforceDefine: true,
|
|
skipDataMain: true,
|
|
waitSeconds : 0,
|
|
|
|
paths: {
|
|
jquery: '[JSURL]lib/jquery/jquery-3.7.1[JSMIN][JSEXT]',
|
|
jqueryui: '[JSURL]lib/jquery/ui-1.13.2/jquery-ui[JSMIN][JSEXT]',
|
|
jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
|
|
},
|
|
|
|
// Custom jquery config map.
|
|
map: {
|
|
// '*' means all modules will get 'jqueryprivate'
|
|
// for their 'jquery' dependency.
|
|
'*': { jquery: 'jqueryprivate' },
|
|
|
|
// 'jquery-private' wants the real jQuery module
|
|
// though. If this line was not here, there would
|
|
// be an unresolvable cyclic dependency.
|
|
jqueryprivate: { jquery: 'jquery' }
|
|
}
|
|
};
|