MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / extendMode

Function extendMode

lib/web/CodeMirror/src/modes.js:64–67  ·  view source on GitHub ↗
(mode, properties)

Source from the content-addressed store, hash-verified

62// outside the actual mode definition.
63export let modeExtensions = {}
64export function extendMode(mode, properties) {
65 let exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {})
66 copyObj(properties, exts)
67}
68
69export function copyState(mode, state) {
70 if (state === true) return state

Callers

nothing calls this directly

Calls 1

copyObjFunction · 0.90

Tested by

no test coverage detected