MCPcopy
hub / github.com/Worklenz/worklenz / get

Function get

worklenz-backend/src/public/tinymce/tinymce.js:1983–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1981
1982 const NodeValue = (is, name) => {
1983 const get = element => {
1984 if (!is(element)) {
1985 throw new Error('Can only get ' + name + ' value of a ' + name + ' node');
1986 }
1987 return getOption(element).getOr('');
1988 };
1989 const getOption = element => is(element) ? Optional.from(element.dom.nodeValue) : Optional.none();
1990 const set = (element, value) => {
1991 if (!is(element)) {

Callers 12

_getFunction · 0.70
getAttribsFunction · 0.70
getPos$1Function · 0.70
getStyleFunction · 0.70
getSizeFunction · 0.70
getRectFunction · 0.70
getParentsFunction · 0.70
selectFunction · 0.70
runFunction · 0.70
insertAfterFunction · 0.70
addFunction · 0.70
FormatRegistryFunction · 0.70

Calls 14

getOffsetFunction · 0.85
findFirstFunction · 0.85
sliceMethod · 0.80
isFunction · 0.70
getOptionFunction · 0.70
get$7Function · 0.70
get$aFunction · 0.70
find$2Function · 0.70
getMethod · 0.65
getOrMethod · 0.45
idMethod · 0.45
getOrUndefinedMethod · 0.45

Tested by

no test coverage detected