MCPcopy
hub / github.com/HumanSignal/label-studio / createElement

Function createElement

docs/themes/htx/source/js/vue.js:4134–4144  ·  view source on GitHub ↗
(context, tag, data, children, normalizationType, alwaysNormalize)

Source from the content-addressed store, hash-verified

4132 // wrapper function for providing a more flexible interface
4133 // without getting yelled at by flow
4134 function createElement(context, tag, data, children, normalizationType, alwaysNormalize) {
4135 if (Array.isArray(data) || isPrimitive(data)) {
4136 normalizationType = children;
4137 children = data;
4138 data = undefined;
4139 }
4140 if (isTrue(alwaysNormalize)) {
4141 normalizationType = ALWAYS_NORMALIZE;
4142 }
4143 return _createElement(context, tag, data, children, normalizationType);
4144 }
4145
4146 function _createElement(context, tag, data, children, normalizationType) {
4147 if (isDef(data) && isDef(data.__ob__)) {

Callers 4

FunctionalRenderContextFunction · 0.85
initRenderFunction · 0.85
LabelFunction · 0.85
BemWithSpecifiContextFunction · 0.85

Calls 3

isPrimitiveFunction · 0.85
isTrueFunction · 0.85
_createElementFunction · 0.85

Tested by

no test coverage detected