MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / _parseSmoothness

Function _parseSmoothness

tools/common/_hyperscript.iife.js:5924–5928  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

5922 return { target, offset, plusOrMinus, scrollOptions, container };
5923 }
5924 function _parseSmoothness(parser) {
5925 var smoothness = parser.matchAnyToken("smoothly", "instantly");
5926 if (!smoothness) return void 0;
5927 return smoothness.value === "smoothly" ? "smooth" : "instant";
5928 }
5929 function _resolveScroll(ctx, to, offset, plusOrMinus, scrollOptions, container) {
5930 ctx.meta.runtime.implicitLoop(to, function(target) {
5931 if (target === window) target = document.body;

Callers 1

parseMethod · 0.70

Calls 1

matchAnyTokenMethod · 0.45

Tested by

no test coverage detected