AMD version of the code
Opened this issue · 6 comments
Hi @marxjohnson
I'd like to propose to start looking at the AMD version of JS as Moodle 2..9+ supports it .
Hittesh
Hi Hittesh,
That sounds like a good idea to me. I don't have much time to work on this myself, but I've been doing quite a bit of work with AMD/jQuery in Moodle so if you'd like to bounce any ideas around please let me know. There's a few other minor issues that have been opened/had pull requests recently, so maybe I could address them while you look at the AMD conversion, and we could have a nice new release for 2.9+?
Hi Mark,
Will try and start working on it this week and keep you updated . I haven't dabbled much with it but i believe its just a matter of "porting" code the AMD way and Moodle should be able to pick it up ? I'll follow through the AMD guidelines on moodle.org
@marxjohnson Any reason why this isnt a good time to move to Jquery instead of YUI ?
@hitteshahuja I think moving to jQuery would be good too, for consistency with current best practice.
+1
Guys,
took me a while but its a bit difficult to devote time to this but I think I am making progress. Finally created an AMD / JQuery version which is under pipeline
https://github.com/hitteshahuja/moodle-block_accessibility/tree/MOODLE_30_STABLE_dev
Agreed this is not the complete solution but I am trying my best to do bits and pieces here and there to complete this ASAP
Any comments / suggestions welcome
Hittesh