Open gjb2048 opened 8 years ago
Thanks for reporting this.
I have tried working with AMD modules but so for I have not been able to write anything that works. The documentation on Moodle.org doesn't really help and there are very few examples of AMD modules in core. So if you know any good sources for learning to write AMD I would certainly be interested.
Hi Bas,
I don't know of any documentation. However I have done all the sort of features that Elegance does, like backstretch.js etc. as AMD modules in my M2.9 themes, so can help if you have questions.
Cheers,
Gareth
Sent from my iPod in deep space...
Since then have got better at writing AMD modules and the mechanism has improved! Closed?
Hi Bas,
Because elegance.js's filename does not change every time it is updated: https://github.com/bmbrands/moodle-theme_elegance/commits/master/jquery/elegance.js then users will not get a fresh copy of the file when it changes on an update.
Two solutions:
Cheers,
Gareth