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

Method resolveHideShowStrategy

www/js/_hyperscript.esm.js:7583–7595  ·  view source on GitHub ↗
(parser, name)

Source from the content-addressed store, hash-verified

7581 }
7582 }
7583 static resolveHideShowStrategy(parser, name) {
7584 var configDefault = config.defaultHideShowStrategy;
7585 var strategies = HIDE_SHOW_STRATEGIES;
7586 if (config.hideShowStrategies) {
7587 strategies = Object.assign({}, strategies, config.hideShowStrategies);
7588 }
7589 name = name || configDefault || "display";
7590 var value = strategies[name];
7591 if (value == null) {
7592 parser.raiseError("Unknown show/hide strategy : " + name);
7593 }
7594 return value;
7595 }
7596};
7597var AddCommand = class _AddCommand extends Command {
7598 static keyword = "add";

Callers 3

parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls 1

raiseErrorMethod · 0.45

Tested by

no test coverage detected