MDL-57280 javascript: add modal registry
commit0531ce1a29e8bd9e6b68495e69482660cd9f0147
authorRyan Wyllie <ryan@moodle.com>
Tue, 6 Dec 2016 01:58:52 +0000 (6 01:58 +0000)
committerRyan Wyllie <ryan@moodle.com>
Mon, 27 Feb 2017 01:05:44 +0000 (27 01:05 +0000)
treef2d916911bc96dd4e53bf236b1a4180334c6ee85
parent0f59b6dd758064997b18c3f2f444878bcee6b7bc
MDL-57280 javascript: add modal registry

Add a modal registry for the types and make the factory use it to allow
code to register modal types at run time and use the factory for
non-core modals.
lib/amd/build/modal_factory.min.js
lib/amd/build/modal_registry.min.js [new file with mode: 0644]
lib/amd/src/modal_factory.js
lib/amd/src/modal_registry.js [new file with mode: 0644]