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

Function _parseSmoothness

www/js/_hyperscript.js:6283–6287  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

6281 return { target, offset, plusOrMinus, scrollOptions, container };
6282 }
6283 function _parseSmoothness(parser) {
6284 var smoothness = parser.matchAnyToken("smoothly", "instantly");
6285 if (!smoothness) return void 0;
6286 return smoothness.value === "smoothly" ? "smooth" : "instant";
6287 }
6288 function _resolveScroll(ctx, to, offset, plusOrMinus, scrollOptions, container) {
6289 ctx.meta.runtime.implicitLoop(to, function(target) {
6290 if (target === window) target = document.body;

Callers 1

parseMethod · 0.70

Calls 1

matchAnyTokenMethod · 0.45

Tested by

no test coverage detected