Hi Dan
Yeah, I tried that, but with no luck...
However, I think I found the reason to my error. It's not that the scripts aren't loaded, but they are loaded in the wrong order.
I tried using the adapt-contrib-match component instead of mcq, because it already has a "library" folder to put the scripts into. In the js file I've turned this:
define([
'core/js/adapt',
'core/js/views/questionView',
'libraries/select2'
],function(Adapt, QuestionView) {
into this:
define([
'core/js/adapt',
'core/js/views/questionView',
'libraries/select2',
'libraries/TweenMax.min',
'libraries/Draggable.min'
],function(Adapt, QuestionView) {
which did the trick!
Just for testing, I tried switching my two scripts around inside the define function, and then I got the error again. It makes sense as Draggable is dependent on TweenMax.
My question now is: Can I always be certain that scripts will be loaded in the same order as their position inside the define([..])?
If not, is there a way to make sure that TweenMax is always loaded before Draggable?
Thank you