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