MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getModule

Function getModule

static/webuploader/webuploader.noimage.js:59–67  ·  view source on GitHub ↗
( id )

Source from the content-addressed store, hash-verified

57
58 // 根据id获取module
59 getModule = function( id ) {
60 var module = modules[ id ] || root[ id ];
61
62 if ( !module ) {
63 throw new Error( '`' + id + '` is undefined' );
64 }
65
66 return module;
67 },
68
69 // 将所有modules,将路径ids装换成对象。
70 exportsTo = function( obj ) {

Callers 1

_requireFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected