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

Method delete

www/js/_hyperscript-max.js:4213–4227  ·  view source on GitHub ↗
(ctx, lhs)

Source from the content-addressed store, hash-verified

4211 }
4212 }
4213 delete(ctx, lhs) {
4214 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4215 var runtime2 = ctx.meta.runtime;
4216 var prop = this._prop;
4217 if (this._isAttribute) {
4218 runtime2.implicitLoop(lhs.root, (elt) => elt.removeAttribute(prop));
4219 } else if (this._isStyle) {
4220 runtime2.implicitLoop(lhs.root, (elt) => elt.style.removeProperty(prop));
4221 } else {
4222 runtime2.implicitLoop(lhs.root, (elt) => {
4223 delete elt[prop];
4224 runtime2.notifyMutation(elt);
4225 });
4226 }
4227 }
4228 };
4229 var PossessiveExpression = class _PossessiveExpression extends Expression {
4230 static grammarName = "possessive";

Callers

nothing calls this directly

Calls 3

nullCheckMethod · 0.45
implicitLoopMethod · 0.45
notifyMutationMethod · 0.45

Tested by

no test coverage detected