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

Method resolveHideShowStrategy

www/js/_hyperscript-max.js:7584–7596  ·  view source on GitHub ↗
(parser, name)

Source from the content-addressed store, hash-verified

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