Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition from YUI to Javascript modules/Jquery #56

Open
Canx opened this issue Feb 17, 2017 · 1 comment
Open

Transition from YUI to Javascript modules/Jquery #56

Canx opened this issue Feb 17, 2017 · 1 comment

Comments

@Canx
Copy link
Contributor

Canx commented Feb 17, 2017

As stated in Moodle YUI docs, Moodle is abandoning YUI in favor of Javascript modules/JQuery because YUI development stopped in 2014.

I guess this Yahoo announcement wasn't good news 2 years ago...

@FMCorz
Copy link
Owner

FMCorz commented Feb 20, 2017

That's right, new JavaScript code should be written using jQuery/AMD. However, so far I've managed to maintain full compatibility from Moodle 2.7, where those were not yet available.

I like only having only one branch to maintain (so long as the code does not get messy), so unless we decide to drop support for older branches, I'd hold onto changing the APIs which make the plugin compatible with a large portion of installations without drawbacks.

As of this day, the plugin is compatible with close to 75% of installs thanks to support down to 2.7. https://moodle.net/stats/

PS: Realistically, I am also uncertain how Moodle can get rid of YUI altogether considering how much JavaScript was written using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants