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

Method resolveHideShowStrategy

www/js/_hyperscript.js:7585–7597  ·  view source on GitHub ↗
(parser, name)

Source from the content-addressed store, hash-verified

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