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

Method resolveHideShowStrategy

tools/common/_hyperscript.iife.js:7179–7191  ·  view source on GitHub ↗
(parser, name)

Source from the content-addressed store, hash-verified

7177 }
7178 }
7179 static resolveHideShowStrategy(parser, name) {
7180 var configDefault = config.defaultHideShowStrategy;
7181 var strategies = HIDE_SHOW_STRATEGIES;
7182 if (config.hideShowStrategies) {
7183 strategies = Object.assign({}, strategies, config.hideShowStrategies);
7184 }
7185 name = name || configDefault || "display";
7186 var value = strategies[name];
7187 if (value == null) {
7188 parser.raiseError("Unknown show/hide strategy : " + name);
7189 }
7190 return value;
7191 }
7192 };
7193 var AddCommand = class _AddCommand extends Command {
7194 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