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

Method set

www/js/_hyperscript-max.js:1943–1959  ·  view source on GitHub ↗
(target, prop, value)

Source from the content-addressed store, hash-verified

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

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