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

Function _parseSmoothness

www/js/_hyperscript-max.js:6282–6286  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.70

Calls 1

matchAnyTokenMethod · 0.45

Tested by

no test coverage detected