MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _resolveSide

Function _resolveSide

src/parsetree/features/bind.js:123–129  ·  view source on GitHub ↗

* Evaluate an expression and create the appropriate side. * If the expression resolves to a DOM element, create an element side. * Otherwise, create an expression side.

(expr, target, feature, runtime, ctx)

Source from the content-addressed store, hash-verified

121 * Otherwise, create an expression side.
122 */
123function _resolveSide(expr, target, feature, runtime, ctx) {
124 var value = expr.evaluate(ctx);
125 if (value instanceof Element) {
126 return _createElementSide(value, runtime);
127 }
128 return _createExpressionSide(expr, target, feature, runtime);
129}
130
131/** Property lookup: INPUT:type -> property name, or TAG -> property name */
132var _bindProperty = {

Callers 1

_bindFunction · 0.70

Calls 3

_createElementSideFunction · 0.70
_createExpressionSideFunction · 0.70
evaluateMethod · 0.45

Tested by

no test coverage detected