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

Method set

www/js/_hyperscript.js:1944–1960  ·  view source on GitHub ↗
(target, prop, value)

Source from the content-addressed store, hash-verified

1942 }
1943 }
1944 set(target, prop, value) {
1945 var parts = [];
1946 if (typeof value === "string") {
1947 parts.push(encodeURIComponent(value));
1948 parts.push("samesite=lax");
1949 } else {
1950 parts.push(encodeURIComponent(value.value));
1951 if (value.expires) parts.push("expires=" + value.expires);
1952 if (value.maxAge) parts.push("max-age=" + value.maxAge);
1953 if (value.partitioned) parts.push("partitioned=" + value.partitioned);
1954 if (value.path) parts.push("path=" + value.path);
1955 if (value.samesite) parts.push("samesite=" + value.samesite);
1956 if (value.secure) parts.push("secure");
1957 }
1958 document.cookie = String(prop) + "=" + parts.join(";");
1959 return true;
1960 }
1961 proxy() {
1962 return new Proxy({}, this);
1963 }

Callers 15

formatErrorsMethod · 0.45
getEventQueueForMethod · 0.45
registerHyperTraceMethod · 0.45
_getObjectStateMethod · 0.45
trackGlobalSymbolMethod · 0.45
trackElementSymbolMethod · 0.45
trackPropertyMethod · 0.45
trackAttributeMethod · 0.45
trackQueryMethod · 0.45
_subscribeEffectMethod · 0.45
_createPersistentIdsFunction · 0.45
_populateIdMapWithTreeFunction · 0.45

Calls 3

resolveMethod · 0.45
replaceInDomMethod · 0.45
setSymbolMethod · 0.45

Tested by

no test coverage detected