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

Function _define

static/webuploader/webuploader.withoutimage.js:31–40  ·  view source on GitHub ↗
( id, deps, factory )

Source from the content-addressed store, hash-verified

29
30 // 内部define,暂时不支持不指定id.
31 _define = function( id, deps, factory ) {
32 if ( arguments.length === 2 ) {
33 factory = deps;
34 deps = null;
35 }
36
37 _require( deps || [], function() {
38 setModule( id, factory, arguments );
39 });
40 },
41
42 // 设置module, 兼容CommonJs写法。
43 setModule = function( id, factory, args ) {

Callers

nothing calls this directly

Calls 2

_requireFunction · 0.70
setModuleFunction · 0.70

Tested by

no test coverage detected