MCPcopy
hub / github.com/fanmingming/live / createElement

Function createElement

m3u8/vue.js:3343–3360  ·  view source on GitHub ↗
(
    context,
    tag,
    data,
    children,
    normalizationType,
    alwaysNormalize
  )

Source from the content-addressed store, hash-verified

3341 // wrapper function for providing a more flexible interface
3342 // without getting yelled at by flow
3343 function createElement (
3344 context,
3345 tag,
3346 data,
3347 children,
3348 normalizationType,
3349 alwaysNormalize
3350 ) {
3351 if (Array.isArray(data) || isPrimitive(data)) {
3352 normalizationType = children;
3353 children = data;
3354 data = undefined;
3355 }
3356 if (isTrue(alwaysNormalize)) {
3357 normalizationType = ALWAYS_NORMALIZE;
3358 }
3359 return _createElement(context, tag, data, children, normalizationType)
3360 }
3361
3362 function _createElement (
3363 context,

Callers 2

FunctionalRenderContextFunction · 0.85
initRenderFunction · 0.85

Calls 3

isPrimitiveFunction · 0.85
isTrueFunction · 0.85
_createElementFunction · 0.85

Tested by

no test coverage detected