MDL-51222 javascript: Merge all the YUI instances
commit4e8afd56d5dae24590f9040650d215276342516e
authorDamyon Wiese <damyon@moodle.com>
Tue, 22 Sep 2015 06:56:22 +0000 (22 14:56 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 22 Sep 2015 07:56:40 +0000 (22 15:56 +0800)
tree27a3ad01f534090492aa7ff1ccd30bcc62365300
parent28de77719979f5627822226a89fa79ecbe1f9dfc
MDL-51222 javascript: Merge all the YUI instances

We previously had a global Y (simpleyui) and a separate Y created
to put Y in scope for all our modules. This meant that we had 2
separate sandboxes for YUI, which means that modules are duplicated,
and events do not fire across YUI instances.

This change merges the 2 instances, so any code refering to Y will
get the same instance of YUI (amd code, yui modules, static init code etc).

Thanks to Andrew Nicols!
lib/outputrequirementslib.php
lib/upgrade.txt