MCPcopy Create free account
hub / github.com/breck7/scroll / defineMode

Function defineMode

external/.scrollLibs.js:2184–2189  ·  view source on GitHub ↗
(name, mode)

Source from the content-addressed store, hash-verified

2182 // used by (legacy) mechanisms like loadmode.js to automatically
2183 // load a mode. (Preferred mechanism is the require/define calls.)
2184 function defineMode(name, mode) {
2185 if (arguments.length > 2) {
2186 mode.dependencies = Array.prototype.slice.call(arguments, 2)
2187 }
2188 modes[name] = mode
2189 }
2190
2191 function defineMIME(mime, spec) {
2192 mimeModes[mime] = spec

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected