MCPcopy Create free account
hub / github.com/aurelia/binding / constructor

Method constructor

src/ast.js:164–170  ·  view source on GitHub ↗
(condition, yes, no)

Source from the content-addressed store, hash-verified

162
163export class Conditional extends Expression {
164 constructor(condition, yes, no) {
165 super();
166
167 this.condition = condition;
168 this.yes = yes;
169 this.no = no;
170 }
171
172 evaluate(scope, lookupFunctions) {
173 return (!!this.condition.evaluate(scope, lookupFunctions)) ? this.yes.evaluate(scope, lookupFunctions) : this.no.evaluate(scope, lookupFunctions);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected