mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
3 lines
497 B
JavaScript
3 lines
497 B
JavaScript
define ("core/modal_registry",["core/notification","core/prefetch"],function(a,b){var c={},d=function(a){return c[a]};return{register:function register(e,f,g){if(d(e)){a.exception({message:"Modal of type '"+e+"' is already registered"})}if(!f||"function"!=typeof f){a.exception({message:"You must provide a modal module"})}if(!g){a.exception({message:"You must provide a modal template"})}c[e]={module:f,template:g};b.prefetchTemplate(g)},get:d}});
|
|
//# sourceMappingURL=modal_registry.min.js.map
|